fix(ci): 升级保护清单步骤强制 bash shell — Windows runner 默认 pwsh 不认 $() 语法

This commit is contained in:
shy3130
2026-10-16 18:34:00 +08:00
parent 8f9251c77f
commit 07dfd5a17b
+3
View File
@@ -150,6 +150,9 @@ jobs:
# Inno/DMG/tar 一起分发, 运行时由 upgrade_guard 读取。
# uv run --no-project: 跨平台用 uv 管的 Python; 版本号唯一权威 =
# frontend/package.json (与 app/__init__._load_version 同源)。
# shell: bash —— Windows runner 默认是 pwsh, 不认识 FOO=$(...) 语法;
# 三平台 runner 均自带 bash, 显式指定即可统一。
shell: bash
run: |
APP_VER=$(node -p "require('./frontend/package.json').version")
uv run --no-project python scripts/generate_manifest.py --root backend/dist/TSP/_internal --output backend/dist/TSP/_internal/app/upgrade_manifest.json --version "$APP_VER"