|
@@ -23,7 +23,7 @@ if (!process.env.CUSTOM_DMGBUILD_PATH) {
|
|
|
module.exports = {
|
|
module.exports = {
|
|
|
// --- 基础配置 ---
|
|
// --- 基础配置 ---
|
|
|
appId: 'com.zycoo.scas-tool-v2',
|
|
appId: 'com.zycoo.scas-tool-v2',
|
|
|
- productName: 'Scas Tool',
|
|
|
|
|
|
|
+ productName: 'SCAS Tool',
|
|
|
buildVersion: buildNumber, // 映射到 CFBundleVersion (Mac) 和 FileVersion (Win)
|
|
buildVersion: buildNumber, // 映射到 CFBundleVersion (Mac) 和 FileVersion (Win)
|
|
|
buildNumber: buildNumber,
|
|
buildNumber: buildNumber,
|
|
|
|
|
|
|
@@ -59,27 +59,27 @@ module.exports = {
|
|
|
'!node_modules/echarts/lib/renderer/**',
|
|
'!node_modules/echarts/lib/renderer/**',
|
|
|
// naive-ui 源码已被 Vite 打包进 renderer JS,asar 中无需保留完整 es/lib 目录
|
|
// naive-ui 源码已被 Vite 打包进 renderer JS,asar 中无需保留完整 es/lib 目录
|
|
|
'!node_modules/naive-ui/es/**',
|
|
'!node_modules/naive-ui/es/**',
|
|
|
- '!node_modules/naive-ui/lib/**',
|
|
|
|
|
|
|
+ '!node_modules/naive-ui/lib/**'
|
|
|
],
|
|
],
|
|
|
asarUnpack: ['resources/**'],
|
|
asarUnpack: ['resources/**'],
|
|
|
|
|
|
|
|
// --- Windows 配置 ---
|
|
// --- Windows 配置 ---
|
|
|
win: {
|
|
win: {
|
|
|
- executableName: 'Scas Tool',
|
|
|
|
|
|
|
+ executableName: 'SCAS Tool',
|
|
|
// 注意:JS中引用内部变量需加反斜杠转义 \${...},引用JS变量则直接用 ${buildNumber}
|
|
// 注意:JS中引用内部变量需加反斜杠转义 \${...},引用JS变量则直接用 ${buildNumber}
|
|
|
artifactName: `\${name}-${pkg.version}.${buildNumber}-setup-\${arch}.\${ext}`,
|
|
artifactName: `\${name}-${pkg.version}.${buildNumber}-setup-\${arch}.\${ext}`,
|
|
|
target: [{ target: 'nsis', arch: ['ia32', 'x64'] }]
|
|
target: [{ target: 'nsis', arch: ['ia32', 'x64'] }]
|
|
|
},
|
|
},
|
|
|
nsis: {
|
|
nsis: {
|
|
|
artifactName: `\${name}-${pkg.version}.${buildNumber}-setup-\${arch}.\${ext}`,
|
|
artifactName: `\${name}-${pkg.version}.${buildNumber}-setup-\${arch}.\${ext}`,
|
|
|
- shortcutName: 'Scas Tool',
|
|
|
|
|
|
|
+ shortcutName: 'SCAS Tool',
|
|
|
oneClick: false, // 取消一键安装,允许用户选择
|
|
oneClick: false, // 取消一键安装,允许用户选择
|
|
|
allowToChangeInstallationDirectory: true, // 允许用户修改安装路径
|
|
allowToChangeInstallationDirectory: true, // 允许用户修改安装路径
|
|
|
perMachine: true, // true 为安装到 Program Files,false 为 AppData
|
|
perMachine: true, // true 为安装到 Program Files,false 为 AppData
|
|
|
createDesktopShortcut: true,
|
|
createDesktopShortcut: true,
|
|
|
createStartMenuShortcut: true,
|
|
createStartMenuShortcut: true,
|
|
|
- uninstallDisplayName: 'Scas Tool',
|
|
|
|
|
- deleteAppDataOnUninstall: false,
|
|
|
|
|
|
|
+ uninstallDisplayName: 'SCAS Tool',
|
|
|
|
|
+ deleteAppDataOnUninstall: false
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// --- macOS 配置 ---
|
|
// --- macOS 配置 ---
|