I'm using electron v6.0.9 with electron-builder v21.2.0. Here is the packaging configuration from my package.json
for a production build.
"build": {
"appId": "com.app.prototype",
"productName": "Pluto",
"copyright": "Copyright © 2018 Simon Inc.",
"mac": {
"target": [
"zip"
]
},
"win": {
"publisherName": "Simon Inc.",
"target": [
"nsis",
"zip"
]
},
"linux": {
"target": [
"AppImage",
"tar.gz"
]
},
"dmg": {
"icon": "build/icon.icns"
},
"publish": {
"provider": "generic",
"url": "THE_RELEASE_URL_HERE",
"channel": "latest",
"publishAutoUpdate": true
}
},
I configured the build script as "pack": "electron-builder --dir -mwl",
in script
. The issue is, when i run the command npm run pack
, it packages the application for all the platform, but for windows there is no single installer file either .exe
or '.msi'. electron-builder
builds bunch of files for windows.
I'm running on macOS High Sierra v10.13.6 (17G8030). I also tried building on windows 10 system but outcome is the same. is anything misconfigured here or there some more steps required to generate single installer file for windows?