- At first install the packages:
'''ELECTRON-PACKAGER (TO LINUX OR WIN)'''
# For use in npm scripts (recommended)
npm install electron-packager --save-dev
# For use from the CLI
npm install electron-packager -g
'''ELECTRON-INSTALLER-DEBIAN (TO CREATE A .DEB FILE)'''
# For use from command-line:
$ npm install -g electron-installer-debian
# For use in npm scripts or programmatically:
$ npm install --save-dev electron-installer-debian
- To build use the commands:
# Build the application to linux
$ npm run build-linux
# Creating the executable in .deb format
$ npm run build-linux:deb
# Build the application to windows (You need have installed the wine64 if you are trying to build in a linux machine)
$ npm run build-win