🐛 fix(update): 修复 Windows 在线更新中文路径失效

- 将 Windows 更新脚本统一为 PowerShell,并通过 Unicode 环境变量传递中文与特殊字符路径
- 保留当前可执行文件路径,补充替换重试、启动健康检查、失败回滚和严格 ZIP 选择
- 更新前复用未保存 SQL 确认流程,并延长退出兜底时间
- 新增 Windows 原生集成测试并接入 dev/release 构建
This commit is contained in:
Syngnat
2026-07-10 13:31:34 +08:00
parent 06bfbc4a84
commit e1fb5b12d4
17 changed files with 1017 additions and 529 deletions

View File

@@ -516,6 +516,11 @@ jobs:
& "$env:CC" --version
& "$env:CXX" --version
- name: Test Windows Online Updater (Windows AMD64)
if: ${{ matrix.platform == 'windows/amd64' }}
shell: pwsh
run: go test ./internal/app -run '^TestWindowsPowerShellUpdater' -count=1 -timeout=3m
# ---- 生成 dev 版本号 ----
- name: Generate Dev Version
id: version

View File

@@ -472,6 +472,11 @@ jobs:
& "$env:CC" --version
& "$env:CXX" --version
- name: Test Windows Online Updater (Windows AMD64)
if: ${{ matrix.platform == 'windows/amd64' }}
shell: pwsh
run: go test ./internal/app -run '^TestWindowsPowerShellUpdater' -count=1 -timeout=3m
- name: Build
shell: bash
run: |