Questions tagged [electron-packager]

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

References

493 questions
2
votes
1 answer

Node child process exits immediately after packing the electron app

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…
kohl
  • 566
  • 2
  • 9
  • 21
2
votes
0 answers

Set app variables from Electron Packager build script

I’m using Electron Packager to package an app. I need to build multiple versions of the app that use the exact same code base, but with a couple of different config variables. For example, I might want to build an app with different themes - a red…
Alex
  • 1,051
  • 1
  • 12
  • 26
2
votes
0 answers

Folder upload Electron

I am using the input with the directory attributes for folder upload that when i am using in Chrome gives me as a result an array of files and information about them But when I am using the electron build with the same input it gives me an object…
2
votes
1 answer

Windows support for Electron application created via Capacitor

I have just started looking at Capacitor as a possible solution to package my hybrid apps in an electron shell. This is the first time I have used Electron, so really know very little about it's details. I ran through the following steps.. 1. Create…
2
votes
1 answer

Running front- and backend at the same time in electron

I am trying to run my express backend simultaneously with my reactjs frontend. Front- and backend need to be packaged into one single electron app. As I am an beginner in both react and electron, the answer may be obvious. So the question: What…
Marco
  • 550
  • 2
  • 6
  • 22
2
votes
1 answer

How to call C# dll method in electron App?

I have an electron app which reads credit card details from card reader. They provided a c# dll to interact with app. I have no idea about how to read the dll methods from electron app.
John willson
  • 83
  • 2
  • 6
2
votes
1 answer

Cannot find module(s) NodeJs with Electron after building

I have a electron app that works with npm start electron . on my Mac. However when I built it using electron-packager to compile it for the Mac, I get the following errors upon opening the compiled Application file bootstrap.min.css Failed to load…
applecrusher
  • 5,508
  • 5
  • 39
  • 89
2
votes
1 answer

npm deasync cause crash in electron

Environment: Windows 10 Pro (x64) and electron 1.7.9 (also 1.8.3 ) Problem description: The usage of "deasync" node module (version 0.1.11 and also 0.1.12) causes the crash of the renderer process. In electron app, just using var deasync =…
2
votes
1 answer

Electron + Angular CLI how to package dist with electron-packager

I have an Electron and Anguarjs CLI app that I want to distribute. After running ng build --prod I get a dist directory that is ~1Mb. However after running electron-packager . the app is ~350Mb. I have my electron main.js setup to point to the…
avn
  • 822
  • 1
  • 14
  • 31
2
votes
0 answers

Compiling electron application using electron packager: bug on MACos with uws when opening the executable

When I compile my electron application with this command: electron-packager ./dist my-application --overwrite --platform=darwin --arch=x64 --icon=icon.icns And then, I try to open the executable created, I have the following error: dyld: lazy…
Margaux Masson
  • 135
  • 2
  • 7
2
votes
1 answer

Forked child process keeps terminated with code 1

I wrapped a module using Electron Packager. Because it has heavy computation, i put it in a sub process that would be forked from renderer.js when user clicks a button on index.html. Pseudo-code renderer.js from : let cp =…
qnhant5010
  • 195
  • 2
  • 12
2
votes
2 answers

Cannot execute shell command from Electron packaged app

I have my Electron app which I am packaging with electron-packager npm module. I want to execute an python application only by name from Nodejs module called child_process. When the application isn't packaged it works, but when I package it does…
WutchZone
  • 154
  • 1
  • 3
  • 13
2
votes
1 answer

Sharing electron applications

I am trying to publish and share my electron app by using electron packager. I was following this tutorial: https://www.christianengvall.se/electron-packager-tutorial/ The tutorial makes a folder 'release-builds' with the application. When I do the…
hlynurl
  • 17
  • 1
  • 4
2
votes
1 answer

Call window function from electron

In one .js file I have window.functionName = function(){ } Now I want to call the function in the main electron file. How can I do that? Here is what I tried to do in the main electron file: const electron = require('electron'); const…
2
votes
1 answer

Reduce weight of a electron app

I have one switch code to identify the windows arch: ia32 and x64, and by this i have two pepflashplayer.dll in my app folder but the weight of the two files is 45.8mb (And the final weight of the app is 74mb), and i think that my app weigh too much…
María
  • 23
  • 3