2022-04-11 10:47:24 +08:00
|
|
|
/**
|
|
|
|
* @see https://www.electron.build/configuration/configuration
|
|
|
|
*/
|
2022-04-09 23:40:30 +08:00
|
|
|
{
|
|
|
|
"appId": "YourAppID",
|
|
|
|
"productName": "YourAppName",
|
|
|
|
"copyright": "Copyright © 2022 ${author}",
|
|
|
|
"asar": true,
|
|
|
|
"directories": {
|
|
|
|
"output": "release/${version}",
|
2022-06-06 20:31:09 +08:00
|
|
|
"buildResources": "electron/resources"
|
2022-04-09 23:40:30 +08:00
|
|
|
},
|
|
|
|
"files": ["dist"],
|
|
|
|
"win": {
|
|
|
|
"target": [
|
|
|
|
{
|
|
|
|
"target": "nsis",
|
|
|
|
"arch": ["x64"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"artifactName": "${productName}-${version}-Setup.${ext}"
|
|
|
|
},
|
|
|
|
"nsis": {
|
|
|
|
"oneClick": false,
|
|
|
|
"perMachine": false,
|
|
|
|
"allowToChangeInstallationDirectory": true,
|
|
|
|
"deleteAppDataOnUninstall": false
|
|
|
|
},
|
|
|
|
"mac": {
|
|
|
|
"target": ["dmg"],
|
|
|
|
"artifactName": "${productName}-${version}-Installer.${ext}"
|
|
|
|
},
|
|
|
|
"linux": {
|
|
|
|
"target": ["AppImage"],
|
|
|
|
"artifactName": "${productName}-${version}-Installer.${ext}"
|
|
|
|
}
|
|
|
|
}
|