electron js build exe code example
Example 1: electron app to exe
$ electron-packager . app --platform win32 --arch x64 --out dist/
Example 2: 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 <sourcedir> <appname> --platform=win32 --arch=x64