ci: Windows 的 pnpm 那步写死 shell: pwsh(免得 actionlint 拿 bash 规则挑反斜杠路径)
构建客户端 / 检查(类型 + 单元测试) (push) Successful in 1m9s
构建客户端 / macOS 通用(.app + .dmg) (push) Skipped
构建客户端 / Windows x64(NSIS 安装包) (push) Failing after 19s
构建客户端 / Linux x64(deb + AppImage) (push) Canceled after 2m1s

This commit is contained in:
2026-10-15 23:15:36 +08:00
parent 1cccc1aa00
commit f3b09ca9a6
+3
View File
@@ -490,9 +490,12 @@ jobs:
- name: 前端依赖(严格按 lock 装)
working-directory: desktop
shell: pwsh
# 这台 runner 上 pnpm 自己算出来的 store 路径很怪(<dest>\node_modules\.bin\
# store\v11),而且 --store-dir 的 env 写法它不认;这里直接给 CLI 参数:
# 显式短路径的 store + copy 导入(不用硬链接),并把输出改成适合日志的形式。
# (shell 写死 pwsh:一是这台 runner 上 Windows 步骤本来就该用 pwsh,
# 二是 actionlint 看到反斜杠路径会拿 shellcheck 的 bash 规则去挑刺。)
run: pnpm install --frozen-lockfile --store-dir C:\Users\admin\runner\windows\cache\ps --package-import-method=copy --reporter=append-only
# nsis 是纯安装包,不需要 WiX;tauri 会自己把 NSIS 下到用户缓存里(这个缓存