Questions tagged [electron-packager]

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

References

493 questions
5
votes
1 answer

electron forge 'make' failing due to too many characters

I added electron to my angular app to be able to run it as a desktop application but I'm having trouble with the 'make' step from electron forge because I keep getting the following error message here is a screenshot of the error message but I also…
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…
Drake Xiang
  • 368
  • 1
  • 7
  • 14
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
0 answers

Unneeded files in node_modules directory?

Looking at the package contents of an Electron OSX app, I see that there is a lot of node module cruft included which isn't needed at runtime and which add to app size bloat. For example, that lightgallery "demo" directory, in the first image below,…
spring
  • 18,009
  • 15
  • 80
  • 160
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
  • 280
  • 4
  • 20
5
votes
0 answers

How to start electron desktop application as Administrator

I have create an Electron desktop Application. I have used electron-packager to create packaging of electron. Using that package I have created windows setup through electron-winstaller. My application requires some admin privileges so I want my…
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
  • 15,854
  • 5
  • 53
  • 88
5
votes
2 answers

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

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, …
Yuan Ma
  • 858
  • 2
  • 11
  • 23
4
votes
0 answers

Electron app crashing when signed for macOS App Store and deployed via TestFlight in ThreadPoolSingleThreadForegroundBlocking0

I have an electron application that is very basic based off the Quick Start tutorial that simply loads a web page with a link. When I build it with npm run make I can test it and it works great. When I package it up and submit to macOS App Store I…
spartygw
  • 3,289
  • 2
  • 27
  • 51
4
votes
3 answers

Electron app not asking for Camera and Microphone permission on macOS Monterey

I have built an application of stack electron and reactjs. I am trying to access the camera and microphone from the application. But the app does not ask for permission when requested and also it does not show in the System Preferences -> Security…
4
votes
2 answers

Signing Electron build for M1 macs causes renderer to crash

I've been making intel builds of our Electron app with Electron-Builder for a while, signing them, and being able to run them without issue. I'm now trying to make an M1/arm build, but it turns out that signing that build causes the renderer to…
4
votes
4 answers

Build electron as exe on macbook m1

I trying to build an electron with an exe installer on macOS with a MacBook Pro with an m1. I already tried different packages like electron-packager, electron-forge, but unfortunately, none of my tries worked. Did anyone has a solution to build an…
Antoni
  • 1,316
  • 2
  • 16
  • 42
4
votes
6 answers

npm run make is not working in electron-forge

I have created and electron application and trying to use electron forge for building purpose. Please find below command which i have run it for creating the electron application: #npm i -g create-react-app #npm i -g @electron-forge/cli …
Rohit
  • 406
  • 1
  • 5
  • 21
4
votes
0 answers

electron-forge package Error: Cannot find module

I am trying to run the packaged electron app on my local Mac. But get an error message saying Error: Cannot find module ... I think the node_module is not installed. I used electron-forge package to build the package. Is there something wrong with…
Jake He
  • 2,417
  • 3
  • 29
  • 41
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
  • 1,336
  • 4
  • 32
  • 69
1 2
3
32 33