'Ionic/Electron App not building msi installer
I have an ionic/electron app that I can run without issue. I am now trying to build it into an executable installer.
This is the electron-builder.config.json file
{
"appId": "com.yourdoamnin.yourapp",
"directories": {
"buildResources": "resources"
},
"files": [
"assets/**/*",
"build/**/*",
"capacitor.config.*",
"app/**/*"
],
"publish": {
"provider": "github"
},
"nsis": {
"createDesktopShortcut": true,
"runAfterFinish": true,
"installerIcon": "assets/appIcon.ico",
"allowElevation": true,
"oneClick": true,
"allowToChangeInstallationDirectory": false
},
"win": {
"target": "msi",
"icon": "assets/appIcon.ico"
}
}
and in my electron/package.json I have:
"scripts": {
"build": "tsc",
"electron:start-live": "node ./live-runner.js",
"electron:start": "electron --inspect=5858 ./",
"electron:pack": "electron-builder --win --dir -c ./electron-builder.config.json",
"electron:make": "electron-builder build -c ./electron-builder.config.json -p always"
}
when I run the command electron:pack it creates the dist folder with 2 yaml files and 1 folder called win-unpacked. Is there something I am missing because I was expecting it to build an installer. I have tried both .exe and .msi "target" with no luck.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
