electron-builder

Electron index.html not loading after building the app

邮差的信 提交于 2020-06-28 08:10:28
问题 I have an electron app that works perfectly fine before bundling it with electron-builder . After bundling it and opening the app, I get the following error : Not allowed to load local resource: file:///tmp/.mount_displa4VwuQh/resources/app.asar/file:/tmp/.mount_displa4VwuQh/resources/app.asar/build/index.html In the build folder I have the electron.js file and index.html and since the app is starting electron.js and thus index.html got bundled correctly. Here is my electron.js app entry

Electron application SQLITE package has not been found installed

拟墨画扇 提交于 2020-06-22 03:54:12
问题 We are struggling with building app for windows 32bit and 64bit. It is angular 2 application which uses sqlite3 as a database. Everything works perfectly in a development but after packaging app and running it on windows it throwns error SQLite package has not been found installed. Try to install it: npm install sqlite3 --save Here is package.json ( part of it which is important for this issue ): "scripts": { "build:aot:prod": "npm run clean:dist && npm run clean:aot && cross-env BUILD_AOT=1

Extending HttpErrorResponse leads to error Cannot find module '@angular/common/http'

最后都变了- 提交于 2020-06-17 22:54:33
问题 I have a model (defined in separate file) which extends HttpErrorResponse with custom property. Custom property is an interface with few properties: import { HttpErrorResponse } from '@angular/common/http'; export interface ApiErrorBody { id: number; code: string; message?: string; trace?: string; } export class ApiErrorResponse extends HttpErrorResponse { public error: ApiErrorBody; } This code works fine in debug mode, but when compiling to prod, I see error at runtime: Error: Cannot find

Add custom page/field to NSIS setup created with electron-builder

我与影子孤独终老i 提交于 2020-06-16 04:47:29
问题 I have created an Electron app which is packaged into an NSIS installer with electron-builder. Now I would like to add a custom text field to the installer, where the user can input a value (the value should be saved to disk/registry, it needs to be available in the app later). I saw there is a customWelcomePage macro defined in the installer, which could probably be (mis)used for this purpose? But how would I create a macro which creates a complete page? NSIS is completely new to me, and the

How to distribute a built executable constructed using electron-builder

感情迁移 提交于 2020-06-01 07:42:06
问题 I have recently packaged an electron app using electron-builder: myProject/ ├── package.json ├── app/ └── release/ All files created by electron-builder are place in the release directory. The executable works fine on my local machine, with all features present through the packaged app. However, once I move the application to another machine only some features are available. Noticeably features within subdirectories in app/ are not included. For example here a snippet of the app/ directory:

Electron window store build crashing

99封情书 提交于 2020-01-25 05:59:05
问题 We are using electron builder with reactJs to create windows application our application packaged well in .exe with the help of electron-builder but not able to published on windows store even followed the guide provided by windows-electron-store. Getting error while executing this command: electron-windows-store --input-directory ./dist --output-directory ./output --package-version 1.0.0.0 --package-name cra-electron You can see I provide all required arguments --input-directory, --output

Electron auto update fails silently when installing update on Windows

故事扮演 提交于 2020-01-15 09:52:12
问题 I have an electron app which uses electron-builder for building, packing & publishing the app. I have the following auto-update code: autoUpdater.logger = log; autoUpdater.logger.transports.file.level = "info"; autoUpdater.autoDownload = true; const updateCheck = () => { autoUpdater.checkForUpdates().then(resp => { log.info("autoUpdate response:"); log.info(resp); }); }; app.on("ready", async () => { log.info(`Version: ${app.getVersion()}`); autoUpdater.on("update-downloaded", () => { log

dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib

烂漫一生 提交于 2019-12-30 00:32:12
问题 Using electron-builder to build Windows app, When signing up, I got this error : dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib Referenced from: /Users/puss/Library/Caches/electron-builder/winCodeSign/winCodeSign-1.7.0/darwin/osslsigncode Reason: image not found 回答1: I try to uninstall openssl and reinstall openssl, It worked. brew remove openssl brew install openssl 回答2: If you are in MacOS 10.15 (Catalina), try this (reinstall openssl): brew update && brew