build config

This commit is contained in:
chenqiang 2025-09-09 11:40:43 +08:00
parent 086e2555d2
commit f8723c204c
2 changed files with 5 additions and 5 deletions

View File

@ -54,13 +54,13 @@ function buildPortableApp() {
console.log('开始构建Windows 7便携应用...');
try {
// 完全删除签名环境变量,而不是设置为空字符串
// 完全删除签名环境变量
delete process.env.WIN_CSC_LINK;
delete process.env.WIN_CSC_KEY_PASSWORD;
// 执行构建命令
// 使用更明确的方式指定便携式构建
execSync(
'npm run electron:build -- --win portable --ia32 --x64 --publish never',
'npm run electron:build -- --win --target portable --ia32 --x64 --publish never',
{ stdio: 'inherit' }
);

View File

@ -110,9 +110,9 @@ module.exports = {
},
],
},
// portable配置 - 只保留artifactName
portable: {
artifactName: "统计技能考试系统_便携版_${version}_${arch}.exe",
target: "portable",
artifactName: "统计技能考试系统_便携版_${version}_${arch}.exe"
},
},
},