mirror of
https://github.com/ZhuLinsen/daily_stock_analysis
synced 2026-09-20 10:53:33 +08:00
fix: disable desktop auto publish during release builds
This commit is contained in:
4
apps/dsa-desktop/package-lock.json
generated
4
apps/dsa-desktop/package-lock.json
generated
@@ -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"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "daily-stock-analysis-desktop",
|
||||
"version": "3.17.0",
|
||||
"version": "3.17.1",
|
||||
"private": true,
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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.'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user