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…
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} =…
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 } =…
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…
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…
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…
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…
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:…
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…
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…
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…
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.
$…
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…
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:…
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