fix: prevent builder auto publish in release jobs

This commit is contained in:
ILoveBinglu
2026-04-07 00:07:07 +08:00
parent c40a9084c5
commit 46cca6038c
3 changed files with 5 additions and 8 deletions
+3 -2
View File
@@ -13,12 +13,13 @@ const configPath = path.join(__dirname, 'electron-builder.config.cjs')
const result = spawnSync(
process.execPath,
[cliPath, `--${target}`, '--config', configPath],
[cliPath, `--${target}`, '--config', configPath, '--publish', 'never'],
{
stdio: 'inherit',
env: {
...process.env,
CIPHERTALK_BUILD_TARGET: target
CIPHERTALK_BUILD_TARGET: target,
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
}
}
)