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: {
|
|
|
|
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-09-03 16:40:09 +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
|
|
|
},
|
|
|
|
}
|