Questions tagged [electron-packager]

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

References

493 questions
2
votes
2 answers

Electron forge throws '.../python3.8" links out of the package' error when making with asar enabled on Mac

I am trying to distribute an electron project. So I follow the official guide and use electron-forge. Here is my config.forge: "config": { "forge": { "packagerConfig": { "asar":true, "ignore":[ "^/[.].+$", …
Ricky Mo
  • 6,285
  • 1
  • 14
  • 30
2
votes
0 answers

Electron app is not available for testing with TestFlight

Need help with uploading app into testflight Now we have “not available for testing” error Maybe it’s because of “Build Platfoms” field is empty But if we add macosx platform, we run into these errors -> Asset validation failed Invalid Code…
2
votes
0 answers

Building Electron app can't find resources files

I have an electron react app (built with create-react-app) which runs fine in development mode, but when I use electron-packager to publish it both the .css and .js files have the error "Failed to load resource: net::ERR_FILE_NOT_FOUND". Looking in…
Michael
  • 365
  • 4
  • 15
2
votes
0 answers

Packaging a go binary and electron app together

I have an electron app (React) that communicates with a go binary over gRPC. I'm looking to package both binaries for distribution and I'm not entirely sure if there exists a way to package both the electron app and go binary into one single app…
JC1
  • 849
  • 13
  • 25
2
votes
0 answers

electron-packager start command

I was wondering if anyone knows how I can define the command used for the packaged electron app. I have a command to package the app using electron-packager, but how do I define what script, or file that the packaged app should start? "scripts":…
Mitchell Day
  • 196
  • 2
  • 14
2
votes
1 answer

How to 'sqlite3' run after build exe with electron-builder

I have build my electron app with help of https://medium.com/jspoint/packaging-and-distributing-electron-applications-using-electron-builder-311fc55178d9 it was was success (windows only). but after install published app, i am getting error as shown…
2
votes
1 answer

Electron app slow to start first time runnning

I've an electron app the start time of which is very slow - 20-30 seconds - when it runs for the first time after packaging. Subsequent times it's run the start time is 1, 2 seconds. Either; are there any thoughts on why this might happen or; are…
Kim Aldis
  • 583
  • 1
  • 4
  • 15
2
votes
0 answers

Electron: Should I still consider asar if I am already using a bundler (Webpack)?

The electron-packager docs mention three reasons why I might want to consider packaging my app into an asar archive (the Electron-specific archive format): Avoid issues with long path names on Windows Speed up require() calls in my code Make it…
2
votes
1 answer

How to show print preview in electron?

I am using Cordova-electron with ReactJS to build a desktop application. we need to implement print-preview in our application instead of showing the default system dialog for printing. The community says there is no default way to achieve this in…
Nishil S.B
  • 69
  • 1
  • 11
2
votes
1 answer

Problem while packaging application with electron-forge "EPERM operation not permitted RMDIR"

It's been a while when I last successfully packaged a electron-forge application, so I had to repackage due to a icon change. As I tried to run npm run make OR npm run package, as the command line was doing all the work, I got a error and terminated…
mikey186
  • 165
  • 16
2
votes
0 answers

electron build for linux with root access

I am trying to run some shell commands on Linux under electron js that required Root Permissions. If I run "Sudo electron ." then it works If I create a build for Linux deb file like "linux:build": "rm -rf dist && electron-packager . App --platform…
2
votes
2 answers

Can FCM push notifications in Electron App

I'm trying to send notifications from Firebase Cloud Messaging (FCM) to a window app (window form for example) but it doesn't seem to be possible (since fcm only supports android/ios/webapp, for here and here). So trying building Electron app to be…
2
votes
1 answer

Electron JS Path Problems After Build and Move

I build my project with Electron. Its run on Nodejs. I compile this project with Electron-Packager. It's run, but when i move compiled folder, project won't run I get some path errors. export function getSafeWPPath(): string { let home =…
2
votes
0 answers

Any way to bundle MySQL with electron app

I'm new to electron, creating an electron app that uses mysql database. I'm using electron-packager to build the packages for windows OS. I wanna bundle mysql with my app, so a user doesn't need to install mysql separately. Any way to do this?…
user15557745
  • 139
  • 6
2
votes
0 answers

Electron js - Spawn child process is working on one windows machine but not on the other

const child = spawn( 'cmd.exe', [ '/K', path.join(getBinariesDirectoryPath(), 'GenericEXE_livestream.exe'), '--ip_address', `${cameraData.camera.ip}`, '--username', `${cameraData.camera.user}`, '--password', …
ilovecse
  • 321
  • 2
  • 10