Questions tagged [electron-packager]

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

References

407 questions
6
votes
1 answer

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
  • 151
  • 2
  • 8
6
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,039
  • 8
  • 27
5
votes
4 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
  • 479
  • 10
  • 29
5
votes
2 answers

How to minify typescript source code in electron app using electron-forge and electron-packager?

edit: I solved this by using electron-builder, it uses webpack under the hood so all problems are handled well by default. I post this question as I used electron-forge and electron-packager at first, and although I searched several resources I…
5
votes
1 answer

Distributing Homebrew dependencies along with electron-packager

I have an electron application that has the following dependencies: ffmpeg libmagic gdbm Currently, I use Homebrew and run brew install ffmpeg etc. upon startup of the app. However, this is terrible for distribution. Is there a way to distribute…
5
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
  • 660
  • 10
  • 26
5
votes
1 answer

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

Electron Tray Icon doesn't show after once I package

I've got an Electron app that shows a tray icon, which, when clicked, shows my main window. works great in development mode, but when I package it, (into a .app file), and double click the .app file, none of the menus show up, and more importantly,…
raingod
  • 1,209
  • 1
  • 11
  • 22
5
votes
2 answers

How to run and pack external executable using Electron?

For example, I have a compiled binary cudaDeviceQuery which returns a list of devices as JSON. Here's a piece of code: export default function cudaDeviceQuery(): Promise { const throwError = () => { throw new…
blits
  • 260
  • 3
  • 18
5
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…
5
votes
1 answer

electron - incremental updating?

I am using electron-vue & electron-packager. I am wondering whether I can do something like incremental updating, that is, after running an electron build command, I don't need to copy the whole electron-linux-x64 folder to my dist machine to update…
ch271828n
  • 5,683
  • 3
  • 24
  • 44
5
votes
2 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
  • 16,486
  • 15
  • 74
  • 148
4
votes
0 answers

How to make react project exe with electron.js

I am trying to make the exe file of my reactjs project with the help of electron.js but i am nota able to create that, its just showing white screen after creation. Any idea, how to do that. My package.json { "name": "demo", "version": "0.1.0", …
4
votes
1 answer

electron ffmpeg mas build "Illegal instruction: 4"

I am trying to release an electron app on the Mac Apple Store (mas), my electron app uses ffmpeg to render videos. In order to release my app on the mac apple store, It needs to be sandboxed, and by default ffmpeg makes calls to external libraries…
Martin
  • 616
  • 1
  • 12
  • 30
4
votes
1 answer

Electron Forge, React, etc. build has gone mad

I'm completely asea here. We had a working app build with an old Electron Forge (^5.2.4; 5.2.6) created using the old React template (1.0.2-1.0.4) with the usual suspects of React tech (react-redux, react-router, etc.) Up until about 1-2 weeks ago…
Dave Newton
  • 152,765
  • 23
  • 240
  • 286
1
2
3
27 28