fix: disable desktop auto publish during release builds

This commit is contained in:
zhulinsen
2026-05-16 15:45:51 +08:00
parent fdbfc90b48
commit 71501d6873
5 changed files with 18 additions and 7 deletions

View File

@@ -81,9 +81,9 @@ fi
echo "Building macOS target arch: ${MAC_ARCH:-default}"
if [[ ${#ARCH_ARGS[@]} -gt 0 ]]; then
npx electron-builder --mac dmg "${ARCH_ARGS[@]}"
npx electron-builder --mac dmg "${ARCH_ARGS[@]}" --publish never
else
npx electron-builder --mac dmg
npx electron-builder --mac dmg --publish never
fi
popd >/dev/null

View File

@@ -91,7 +91,7 @@ if (!(Test-Path $appBuilderPath)) {
Install-DesktopDependencies -Reason 'app-builder.exe missing' -Clean
}
npx electron-builder --win nsis
npx electron-builder --win nsis --publish never
if ($LASTEXITCODE -ne 0) {
throw 'Electron build failed.'
}