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