electron package code example
Example 1: electron build windows exe
# for use in npm scripts
npm install electron-packager --save-dev
# for use from cli
npm install electron-packager -g
electron-packager --platform=win32 --arch=x64
Example 2: electron-packager
# For use in npm scripts (recommended)
npm install electron-packager --save-dev
# For use from the CLI
npm install electron-packager -g