npm install electron-packager -g
electron-packager . my-electron-app --platform=win32 --arch=x64 --electron-version=<your electron version> --icon=app.ico
# for use in npm scripts
npm install electron-packager --save-dev
# for use from cli
npm install electron-packager -g
electron-packager . example --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName="Electron Tutorial App"
npm install electron-builder --save-dev
npm install electron-builder-squirrel-windows
"scripts": {
"postinstall": "install-app-deps",
"start": "npm install && electron ./app",
"pack": "build --dir",
"dist": "build"
},
"build": {
"appId": "yourappid",
"win": {
"target": "squirrel",
}
}
npm run dist