I want to generate a unique .exe file to execute the app or a .msi to install the application. How to do that?
2020 Update
You can use electron-builder to create portable .exe file for your electron app.
All you need to do is install electron-builder with yarn add electron-builder --dev
Then create a package.json file like this(this is just for portable .exe):
{
"name": "my-electron-app",
"productName": "electron app",
"version": "1.0.0",
"description": "an electron app",
"main": "main.js",
"scripts": {
"start": "electron .",
"dist": "electron-builder"
},
"devDependencies": {
"electron": "^8.0.2",
"electron-builder": "^22.3.2"
},
"build": {
"appId": "com.electron.app",
"win": {
"target": "portable"
},
"portable": {
"unicode": false,
"artifactName": "my_electron_app.exe"
}
}
}