electron-builder

nsis uninstaller not deleting registry for electron app - nsh script

我怕爱的太早我们不能终老 提交于 2019-12-25 00:14:43
问题 I've set my electron app to auto-start on windows: app.setLoginItemSettings({ openAtLogin: true, path: process.execPaths }) This adds an entry to registry at location Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\electron.app my app I'm using electron-builder to package my app. It's mention there that I can add a script installer.nsh at the time of nsis uninstallation. Here's my custom installer.nsh : !macro customUnInstall SetRegView 64 DeleteRegKey /ifempty SHCTX

PNG files not found in ASAR

谁都会走 提交于 2019-12-24 01:33:05
问题 I have an Electron (1.7.10) application that is reporting it can't find 5 of 7 PNG files in my ASAR. All 7 PNGs are in the same folder, and 2 of them are displayed on screen fine. The other 5 report net::ERR_FILE_NOT_FOUND . All src attributes for the img tags are dynamically generated and use relative paths ( assets/images/MyImage.png ). If I extract the ASAR, I can see the files in there, in the correct folder (as referenced by the src attribute). If I use the console to set the location of

Electron Autoupdater with Private GitHub Repository?

旧城冷巷雨未停 提交于 2019-12-23 04:43:52
问题 I have implemented Electron AutoUpdater with PRIVATE GitHub Repository as provider to publish electron application. Now, i can publish it using GitHub repository but Whenever AutoUpdater tries to download the updates from GitHub repository, Everytime it prompts with response code 404 Not found.. I have tried passing token in setFeedURL method and also set it in GH_TOKEN but seems like that does not work either. autoUpdater.setFeedURL({ provider: 'github' , owner: 'owner' , repo: 'repo-name' ,

electron-builder is not bundling the python files

。_饼干妹妹 提交于 2019-12-20 03:44:06
问题 This is my directory structure where renderer.js is included by index.html . The python scripts visitor.py and download.py are called from renderer.js via python-shell. Once I bundle, it is not able to find the python scripts |_ index.html |_ styles.css |_ main.js |_ package.json |_ dist/ |_ node_modules/ |_ renderer.js |_ visitor.py |_ download.py I tried putting everything in files: [...] in package.json under build > files and then ran npm run dist . I also tried copying python files to

Error while running execFileSync in packaged Electron app

扶醉桌前 提交于 2019-12-13 03:04:47
问题 I ran the following code in packaged electron app by electron-packager(asar=false). const app = require(‘electron’); const { join } = require(‘path’); const EXEC_OPTS = {encoding: 'utf-8', shell: true}; childProcess.execFileSync(join(app.getAppPath(), 'src', 'executable') + ‘/test.sh’, [''], EXEC_OPTS); But I got nothing even error logs.. This code normally can run only by command of “electron .” , But this code cannot run after packaging by electron packager . Structure is like this (just

Adding electron application path to user environment variables after install

岁酱吖の 提交于 2019-12-12 15:07:21
问题 Problem description: I have an electron application and I need to add the application to user environment variables after users install my application, so that they can run commands like this my-electron-app <command> [<args>] in the terminal to start my electron application. I could not find a way to do this programmatically using nodejs. VSCode, hyper and atom are the three electron apps ( that I know of ) who add the application path to user environment variables after users install the

Electron dying without any information, what now?

邮差的信 提交于 2019-12-12 10:00:27
问题 The app I'm building, when I compile it for distribution packing it with electron-builder, every now and then, dies, showing a blank screen and a disconnected devtools: Any ideas what's going on or how to start figuring out what's happening here? 回答1: Listen for the uncaughtException event and log any error that you get. This will give you insight into what is happening. Then perform any cleanup if necessary and relaunch the app if desired. This allows your app to "recover" from crashes if it

electron-builder package for windows in dev mode

半城伤御伤魂 提交于 2019-12-11 19:07:03
问题 I need to test my app on windows, but I am using a mac. It is very easy to package the app to run on windows, but I cannot package the app in dev-mode. I am using electron-is-dev to decide if I am running in dev or not. I need to run my tests on windows because I am testing a very specific windows hardware functionality. I don't want to comment my if(isDev){doSomething} just to run these test, and then uncomment it before I push the change. I was hoping there is some flag I can set in the

Notarizing electron app with electron-installer-dmg ( without electron-builder )

自闭症网瘾萝莉.ら 提交于 2019-12-11 16:14:11
问题 From macOS Catalina, it is compulsory to Notarize macOS apps. There are many guides avaiable but all are using electron-builder. Have anyone did this using electron-installer-dmg? I don't want to change my configurations but no luck till now using electron-installer-dmg. I could not figure out how to use electron-notarize package with electron-installer-dmg. 来源: https://stackoverflow.com/questions/58321290/notarizing-electron-app-with-electron-installer-dmg-without-electron-builder

create custom page, after the install is complete

邮差的信 提交于 2019-12-11 10:02:28
问题 I am working on a script that is installing my application made in electron and so far all seems to be working fine. There is one problem however, i was able to add new custom page, but it is added before the install is taking place. It is a problem because this page contains two input fields which user must fill and then the provided data is stored in directory where app is installed. But because app is installed after this step, directory gets overwritten and file is gone. This is the code: