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

44 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"],
2024-09-10 16:26:54 +08:00
extraResources: [
{
from: "./extraResources/",
to: "lib/"
}
],
2024-09-03 15:28:30 +08:00
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-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
},
}