2024-08-29 16:59:25 +08:00
|
|
|
// @see - https://www.electron.build/configuration/configuration
|
|
|
|
{
|
2024-09-03 15:28:30 +08:00
|
|
|
$schema: "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
|
|
|
|
appId: "cvpilot",
|
|
|
|
asar: true,
|
|
|
|
productName: "cvpilot",
|
|
|
|
directories: {
|
|
|
|
output: "release/${version}",
|
2024-08-29 16:59:25 +08:00
|
|
|
},
|
2024-09-03 15:28:30 +08:00
|
|
|
files: ["dist", "dist-electron"],
|
|
|
|
mac: {
|
|
|
|
target: ["dmg"],
|
|
|
|
artifactName: "${productName}-Mac-${version}-Installer.${ext}",
|
2024-08-29 16:59:25 +08:00
|
|
|
},
|
2024-09-03 15:28:30 +08:00
|
|
|
win: {
|
2024-10-13 03:03:19 +08:00
|
|
|
icon: "win.ico",
|
2024-09-03 15:28:30 +08:00
|
|
|
target: [
|
2024-08-29 16:59:25 +08:00
|
|
|
{
|
2024-09-03 15:28:30 +08:00
|
|
|
target: "nsis",
|
|
|
|
arch: ["x64"],
|
|
|
|
},
|
2024-08-29 16:59:25 +08:00
|
|
|
],
|
2024-09-03 15:28:30 +08:00
|
|
|
artifactName: "${productName}-Windows-${version}-Setup.${ext}",
|
2024-08-29 16:59:25 +08:00
|
|
|
},
|
2024-09-03 15:28:30 +08:00
|
|
|
nsis: {
|
|
|
|
oneClick: false,
|
|
|
|
perMachine: false,
|
|
|
|
allowToChangeInstallationDirectory: true,
|
|
|
|
createDesktopShortcut: true,
|
|
|
|
runAfterFinish: true,
|
2024-10-11 22:26:10 +08:00
|
|
|
// include: "./scripts/installer.nsh",
|
2024-09-03 15:28:30 +08:00
|
|
|
deleteAppDataOnUninstall: false,
|
|
|
|
},
|
|
|
|
linux: {
|
|
|
|
target: ["AppImage"],
|
|
|
|
artifactName: "${productName}-Linux-${version}.${ext}",
|
2024-08-29 16:59:25 +08:00
|
|
|
},
|
|
|
|
}
|