Questions tagged [electron-packager]

Use electron-packager for questions related to the packaging module for Electron apps

References

493 questions
3
votes
1 answer

Start electron app with admin privileges as default

I created an electron app which can only be started as admin, because it needs it for various command executions. Now it prompts that it must be started as admin. This question was very helpful. Now I want to start it with admin privileges right…
Gehtnet
  • 443
  • 10
  • 25
3
votes
1 answer

'Unable to find a valid app' error building electron app using electron-packager

When running my application using npm start, everything works fine. However after building my app using electron-packager and open .exe file, it occurs: 'Unable to find a valid app' , complete description is error my packager.json file is: { …
Zerui Hu
  • 81
  • 1
  • 7
3
votes
2 answers

Analyzing electron crash dumps

An electron app packaged using electron-packager is crashing and generating dump files. I was able to use breakpad, minidump_stackwalk to view a part of the dump file. Here's a snapshot of the output, 7 0x7fff6026ec5d rbp = 0x0000700005badf78 rsp…
3
votes
1 answer

Node-GYP failed with exit code: 1

I have to use node-usb in electron.atom to use that I am trying to install node-gyp and I am facing a Issue. gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit…
Enigmatic
  • 602
  • 1
  • 8
  • 19
3
votes
1 answer

How to bundle Electron application and windows service together?

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…
3
votes
3 answers

electron-forge how to specify a source directory for packaging?

I've rigged create-react-app with the electron-forge app and now I need to somehow specify the build folder produced from the CRA for the packaging. That folder should also be served. Would such a thing be possible with electron-forge?
3
votes
2 answers

Electron Squirrel.Windows: .msi not working

I developed an Electron app and with the use of eletron-packager and then electron-squirrel-startup I created .exe and .msi installer files. The .exe file is working fine, but the .msi is not. It looks like it just stops at some point and turns off.…
3
votes
0 answers

Adding Python installation for an Electron app

I am creating an Eletron desktop application for Windows. I am using electron-packager and then electron-squirrel-startup to create an .exe file. Like in this…
madasionka
  • 812
  • 2
  • 10
  • 29
3
votes
0 answers

Missing electron argument

I have an electron app that, when packaged, will remove the first argument after the executable name. For example, the command launcher.exe a b c populates process.argv from main.js and require('electron').remote.process.argv from the console…
3
votes
1 answer

electron-packager not installing all modules from node_modules

electron-packager . not installing all modules from node_modules on Darwin platform. When trying to start such packaged app, following error occurs: Uncaught Exception: Error: Cannot find module 'sudo-prompt' at Module._resolveFilename…
Systems Rebooter
  • 1,281
  • 2
  • 14
  • 30
3
votes
1 answer

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

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…
3
votes
1 answer

How to insert image files in Electron + React.js + Webpack desktop app package for Mac OS

I am building a desktop application for Mac OS with Electron + React + Webpack mode. When I build a Electron desktop app as production version, I would like to insert some image files in the setup file(Test.app and Test.dmg) and use the image as…
Golden Star
  • 31
  • 1
  • 6
2
votes
0 answers

Create a standalone build for react application using electron

It is my first project in that I'm using electron, I'm dealing with a few problems creating standalone publish from the project. Here's my electron main.js file: const path = require("path"); const electron = require("electron"); const isDev =…
Vala Khosravi
  • 2,352
  • 3
  • 22
  • 49
2
votes
0 answers

Can electron's --log-file flag capture main console logs, or only renderer logs?

I've been trying to figure out a way to log my electron app's main console logs in production, without having to install an additional npm package such as electron-logger. When starting electron manually from the command line, this is no problem of…
bikz
  • 415
  • 4
  • 11
2
votes
2 answers

Including python script in packaged electron app

After packaging my app for a linux system, the python script for doing some background tasks fails to execute, probably because it is not packaged correctly. I've looked through several threads now, stumbled over ASAR, extraResources etc. but I'm…
Traxan
  • 45
  • 7