cvpilot-tool/apps/desktop/electron-builder.json5

41 lines
1.0 KiB
Plaintext
Raw Normal View History

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,
allowElevation: true,
allowToChangeInstallationDirectory: true,
createDesktopShortcut: true,
runAfterFinish: true,
shortcutName: "CvpilotAI",
guid:"cvpilot",
include: "./script/installer.nsh",
deleteAppDataOnUninstall: false,
},
linux: {
target: ["AppImage"],
artifactName: "${productName}-Linux-${version}.${ext}",
2024-08-29 16:59:25 +08:00
},
}