I’ve been learning the Electron JS framework to build cross-platform desktop applications using web technologies like HTML, CSS, and JavaScript. I’m using the Electron Quick Start repository available on GitHub. This project runs smoothly using the following commands:
# Install dependencies
npm install
# Run the app
npm start
But, I’m struggling to compile this Electron application into a Windows executable (.exe) file.
Note:--arch must be a string matching: ia32, x64, armv7l, arm64, mips64el
Complete Use:
Open your package.json file and find the ‘scripts’ section. Add a new entry called ‘build’ with the appropriate configuration for packaging, like this: