Questions tagged [electron-packager]

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

References

493 questions
7
votes
0 answers

How do I include the node_modules in electron-forge webpack?

The @vercel/webpack-asset-relocator-loader works in some modules, and does not work in some. In cases that it doesn't work, I have to use the externals config as stated in the electron-forge docs here. If the asset relocator loader does not work…
jove0610
  • 664
  • 1
  • 8
  • 16
7
votes
6 answers

How to Change ElectronJS App default Icon?

I am new to electronjs. I want to convert an angular app to desktop. I could achieve it successfully but the problem is that the app icon is set to default electron and not the icon I provided as follows: win = new BrowserWindow({ width:…
TheCondorIV
  • 574
  • 2
  • 14
  • 34
7
votes
3 answers

electron builder app size is too large

I find that the MyApp.exe file generated using electron-builder is nearly about 500M. I am not sure what I did because previously, just for ia32 or x64, it would be around 196M. I also looked at this link and it mentions only about 55MB-60MB. So the…
Arun Krishnan
  • 211
  • 1
  • 3
  • 10
7
votes
0 answers

A JavaScript error occurred in the main process : Electron

I am trying to package an electron app using electron packager. After successfully packaging the app, when I open the app file, it throws the following error. Version that am using, npm - 5.4.1 node - 6.11.0 electron - 1.6.11 Please help if anyone…
7
votes
1 answer

Shortcuts in Electron on Mac

Well, I have quite a simple task, which can't be really hard. I have an app, which uses the electron framework to use the application on Windows and Mac machines. I notices that I am able to use Ctrl+c/Ctrl+v on Windows without any problems, but I…
thardes2
  • 1,162
  • 12
  • 28
7
votes
3 answers

Packaging Keytar with an Electron app

I'm using electron-builder (16.6.2) to package my electron application which includes keytar (3.0.2) as a prod dependency. package.json file includes: "scripts": { "postinstall": "install-app-deps", "compile:dev": "webpack-dev-server --hot…
Kevin
  • 101
  • 1
  • 6
7
votes
3 answers

How to add an icon to electron application

I've got my electron build files for a win .exe and installer but the icons aren't mine. In my main.js file, I have code to attach the icon but I can only make it work inside of the createWindow function. Outside the function, I get an error…
Tim
  • 79
  • 1
  • 1
  • 3
6
votes
1 answer

Electron Js - A javascript error occurred in the main process

I have created an electron project which is working fine but when I try to package an electron app using electron packager and then run it. I am facing an exception Uncaught Exception: Error: Cannot find module Require…
6
votes
1 answer

Building electron linux distro : The SUID sandbox helper binary was found, but is not configured correctly

I am generating electron distro for linux. This is how the app is built This is how app is built in packge.json "builderForLinx": "electron-packager --out linx64 --overwrite --platform linux --appname myApp --asar" this app structure myApp ->…
karansys
  • 2,449
  • 7
  • 40
  • 78
6
votes
1 answer

npm: command not found when executing commands in Electron app

I'm working on an electron app and within the app, I execute shell commands using child_process.exec. One of the commands I run is npm run start; this works perfectly in a dev environment but when I build the application for production all npm…
HackAfro
  • 720
  • 1
  • 12
  • 28
6
votes
2 answers

How to disable http cache for electron app after packaging to .exe using electron-packager

I have an electron app, that loads some css's from spring boot server. When I run app from npm from sources, I can run as ng build && electron . --disable-http-cache and it works without the cache. If I build my app with electron-packager to…
Daniel Prosianikov
  • 100
  • 1
  • 1
  • 10
6
votes
1 answer

Electron-packager - The "path" argument must be of type string. Received type undefined

I have been struggling with this issue and could not figure it out. Similar problems were posted which solutions suggested node version had a glitch or package versions should be down/upgraded. I have tried it with modifying the node versions,…
Ben
  • 953
  • 12
  • 27
6
votes
1 answer

How to ignore src folder from package

I have an electron app and below is the folder structure. app |--node_modules |--somepackage/src |--src I am packaging this app using electron-packager, so I tried to ignore root level src folder by executing the below command. "scripts": { …
Mahesh More
  • 821
  • 1
  • 8
  • 23
6
votes
3 answers

Electron-packager not setting icons

There are lots of questions relating to setting icons using electron-packager but none of the answers have worked for me – maybe the answers are out of date or not clear – but I need to ask again. I am building on OSX for OSX & Windows. I've tried…
spring
  • 18,009
  • 15
  • 80
  • 160
5
votes
3 answers

electron-packager Cannot read property 'info' of undefined

I was trying to create package of legacy electron app using electron-packager but got an error like below. I have search several questions in stackoverflow with no luck. electron-packager . MyApp --platform=win32 --arch=x64 --no-prune --overwrite…
Mikhael Pramodana
  • 143
  • 1
  • 1
  • 6
1
2
3
32 33