Questions tagged [electron-packager]

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

References

493 questions
4
votes
2 answers

Electron-Packager not doing anything

So I'm trying to package an electron app using electron-packager. I have followed all the tutorials and have come up with using the following code and then running it in CMD using npm run package-win. When I do this however, nothing happens. It runs…
4
votes
4 answers

Electron Remote (Close, Minimize etc) not work (Cannot read property 'getCurrentWindow' of undefined)

I am trying to add close and minimize button on frameless window in Electron JS app. But its not working in anyhow. It's alwasy show "Cannot read property 'getCurrentWindow' of undefined" error. Here is my code: const {remote} =…
4
votes
0 answers

webContents.savePage Alternative for Electron apps in Windows Build

Recently, I was trying to build Electron Apps for "Windows and Macintosh". I had to download the current web page running using the "load URL" method in Browser Window. In Macintosh, when I run below function: const { BrowserWindow } =…
John Cargo
  • 1,839
  • 2
  • 29
  • 59
4
votes
1 answer

OS specific directories for binary generated by Electron Builder

Electron Builder has output directory field "directories": { "output": "releases", "buildResources": "dist" }, But this is just single folder for 3 platform specific build(Mac, Windows and Linux) I need different directories for respective…
4
votes
0 answers

Electron : Error on generating Setup for Windows with electron-winstaller on MacOsx

Since I'm using Catalina I'm not able to generate new nupkg and setup.exe with electron-winstaller. I think it's a permission problem but I don't know how to resolve it. Hope someone could help me. Thanks. The error that appears just after the…
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
  • 158,873
  • 26
  • 254
  • 302
4
votes
1 answer

electron-builder Targets: mac vs. mas

What is the difference between the 2 electron-builder targets for Mac OS X: mac vs mas? I understand that mas is for distribution in the Mac App Store, and mac is for distribution outside of it. Is the mas package able to auto-update when a new…
4
votes
3 answers

Electron-builder error - Fatal error: Unable to commit changes

I am trying to package electron-react application. I am using electron-builder for that purpose. electron version = 4.0.0 electron-builder version = 20.19.1 I am getting below error, Error: Exit code: 1. Command failed:…
4
votes
0 answers

How to package external .exe files in electron application

I am developing an electron application where I am using external .exe files. In development mode application works fine. But when I package the application, it is unable to find those .exe files. How to include .exe files in packaged application. I…
4
votes
1 answer

How to catch error while using fork child process in node?

I am using the fork method to spawn a child process in my electron app, my code looks like this 'use strict' const fixPath = require('fix-path'); let func = () => { fixPath(); const child = childProcess.fork('node /src/script.js…
kohl
  • 566
  • 2
  • 9
  • 21
4
votes
2 answers

Running an electron process as plain node process?

I have my packaged electron app using electron-packager and I want to run this app in any mac which doesn't have node installed. I was suggested that electron-packager bundles the node into my app, but when I try launching it on a mac I get the…
kohl
  • 566
  • 2
  • 9
  • 21
4
votes
2 answers

Unable to build with electron-packager within electron-forge

I have created a default project with electron-forge. When I try to package my project with the command electron-forge, the process exits with the following error. What am I doing wrong? I followed the instructions to a tee at electron-forge. $…
user4119200
4
votes
2 answers

electron-packager spawn ENOENT

I'm working on an electron app that controls gulp tasks via gui. You click on a task and it runs. Pretty simple stuff. On macOS, when I run npm start it runs just fine, but when I package it with electron-packager, I get this error: Uncaught…
4
votes
0 answers

Electron Packager - Error: EPERM: operation not permitted, rmdir

I have a script in my package.json (I am on Win10) "build-win32": "electron-packager . --electron-version 1.4.15 --platform win32 --icon ./assets/icon.ico --out ./dist --overwrite" In command prompt I type npm run build-win32 I get the error:…
Rewind
  • 2,554
  • 3
  • 30
  • 56
4
votes
3 answers

Regex pattern to ignore multiple folders

How is the correct syntax to ignore more then one files and folders for electron-packager? With only one arg like: --ignore=docs/* it works fine. But I want to ignore more then one folder and files like: --ignore=docs/* + dev/* + someFile.js
Zantinger
  • 167
  • 3
  • 16