electron-packager

Electron executable not recognized by Nautilus

时间秒杀一切 提交于 2020-01-14 10:21:44
问题 I'm not able to build an executable file of an Electron App with the following command: electron-packager . electron-tutorial-app --overwrite --asar=true --platform=linux --arch=x64 --prune=true --out=release-builds The build file, which is a shared library file (application/x-sharedlib), is not executing on Ubuntu 18 . Instead, I'm getting the following error message when opening the file in Nautilus: Could not display "electron-tutorial-app" There is no application installed for "shared

Can we launch a node command on a mac without node installed when using electron-packager?

一笑奈何 提交于 2020-01-11 12:40:34
问题 When I package an electron app using electron-packager. The app spawns a child process which uses a 'node' command. Now if I try to launch my app in a system with no node installed on it, does the app work? I have been trying to achieve this and facing various issues, the electron community suggested me to use fork method, spawn method with 'Process.execPath' as command and also setting the ELECTRON_RUN_AS_NODE variable but nothing seems to work on my end. Now after doing all this I question

Node child process exits immediately after packing the electron app

北城余情 提交于 2019-12-23 05:00:26
问题 I have this piece of code in the GUI part of my electron app which works perfectly alright when run from the terminal. I have packaged the app using 'electron-packager', then I started getting some issue. Initially, the child process was terminating immediately and giving code 127 which I resolved by using 'fix-path' module as discussed here. https://github.com/electron/electron/issues/7688 Even after this, the process exits immediately with a code 1, I am unable to resolve this as there is

'electron-packager' is not recognized as an internal or external command

青春壹個敷衍的年華 提交于 2019-12-20 19:57:49
问题 I recently started using electron. I have successfully completed the 1st phase by creating a hello world app (included files index.html, main.js, package.json). Now I am trying to package the app using electron-packager but getting this error Steps I have followed: Created a project directory named helloworld. Initialized the project directory using npm init command. Then installed electron using npm install electron --save-dev . Then created the javascript and html files as main.js and index

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

How to bundle Electron application and windows service together?

荒凉一梦 提交于 2019-12-12 22:17:38
问题 I am very new with electron application. I need some help with election installation . I have an Electron desktop application and a windows service . I can start and stop my pre installed services by using sudo-prompt package. I am creating windows installer by using electron-winstaller package. But I want to bundle my windows service along with my electron application . My requirement is when I install my electron package then it should install my service also, when I uninstall my package

electron-packager and gloabl electron module

爱⌒轻易说出口 提交于 2019-12-11 02:49:56
问题 I have installed electron and electron-packager, all of them in global mode. When I build my app electron-packager searchs the local electron module. How forcing electron-packager to use the global electron module that I have installed? 回答1: The short answer is that what you have described isn't the way you "should" use electron-packager. Normally, the intent is that you are building a local package (exe or such) under the project directory you are working on. For example, an electron/angular

How should i exclude all node_modules in electron-packager

喜欢而已 提交于 2019-12-10 20:25:12
问题 I'm using electron-packager for creating an electron.exe of my app. I need to exclude all node modules . I tried the following --ignore=node_modules The above is not working. Any idea how to exclude all folders/ remove node modules in final build. 回答1: If you install modules as devDependencies , they will all be pruned automatically before packaging. If you're using electron-builder you can define glob patterns as files in the config. In this case !**/node_modules/* will exclude all of node

Signing a Windows installer (.exe) for application created using Electron

回眸只為那壹抹淺笑 提交于 2019-12-07 13:04:58
问题 I have a simple app built using Electron framework . I packaged the code using electron-packager-interactive . I also created a Windows installer file which is ready for distribution using Inno Setup compiler (Single .exe file). The problem here is when users run the .exe file, a popup from Windows Smart screen blocks it saying publisher is unknown . Only after "More info", it allows to install with " Run anyway ". Probably it's because my application is not signed . So can anyone help me how

Electron-packager: can not locate local db file after packing

有些话、适合烂在心里 提交于 2019-12-06 07:55:13
问题 Background: In my app, I have a local DB file, named example.db which is read by the main.js . The project structure and part of my main.js program is shown below. Project folder architecture main.js const { app, BrowserWindow, dialog, Menu } = require('electron') const fs = require('fs') const path = require('path') const sqlite3 = require('sqlite3').verbose() // load dataBase let dbFile = 'app/db/example.db' const db = new sqlite3.Database(dbFile) Package.json { "name": "Example", "version"