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

@@ -1,12 +1,12 @@
{
"name": "daily-stock-analysis-desktop",
"version": "3.17.0",
"version": "3.17.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "daily-stock-analysis-desktop",
"version": "3.17.0",
"version": "3.17.1",
"dependencies": {
"electron-updater": "^6.8.3"
},

View File

@@ -1,6 +1,6 @@
{
"name": "daily-stock-analysis-desktop",
"version": "3.17.0",
"version": "3.17.1",
"private": true,
"main": "main.js",
"scripts": {

View File

@@ -12,6 +12,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
<!-- 新条目格式:- [类型] 描述(类型取值:新功能/改进/修复/文档/测试/chore-->
<!-- 每条独立一行追加到本段末尾,无需分类标题,合并时冲突最小 -->
## [3.17.1] - 2026-05-16
### 发布亮点
- fix: 桌面端 Windows / macOS 打包脚本显式关闭 electron-builder 自动发布,避免 tag 构建时因缺少 `GH_TOKEN` 在本地打包完成后失败Release workflow 继续负责上传和发布产物。
### What's Changed
- fix: Add `--publish never` to the Windows and macOS Electron packaging scripts so tag builds only create local artifacts and GitHub Actions handles release upload/publish.
## [3.17.0] - 2026-05-16
### 发布亮点
@@ -1466,7 +1476,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
---
[Unreleased]: https://github.com/ZhuLinsen/daily_stock_analysis/compare/v3.17.0...HEAD
[Unreleased]: https://github.com/ZhuLinsen/daily_stock_analysis/compare/v3.17.1...HEAD
[3.17.1]: https://github.com/ZhuLinsen/daily_stock_analysis/compare/v3.17.0...v3.17.1
[3.17.0]: https://github.com/ZhuLinsen/daily_stock_analysis/compare/v3.16.0...v3.17.0
[3.16.0]: https://github.com/ZhuLinsen/daily_stock_analysis/compare/v3.15.0...v3.16.0
[3.15.0]: https://github.com/ZhuLinsen/daily_stock_analysis/compare/v3.14.2...v3.15.0

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.'
}