🐛 fix(update): 支持 Windows 便携版 ZIP 自动更新

- 将便携版更新资产切换为普通 ZIP,并兼容复用已下载包
- 解压后映射版本化目标文件名,保留旧版 EXE 更新兼容
- 将内嵌 PowerShell 更新脚本策略收紧为 RemoteSigned
- 补充 ZIP、目标路径与启动参数回归测试
This commit is contained in:
Syngnat
2026-07-23 13:07:03 +08:00
parent 57108d5b71
commit 3ac390f0dc
11 changed files with 112 additions and 17 deletions

View File

@@ -129,7 +129,7 @@ func TestBuildWindowsLaunchCommandUsesHiddenPowerShellFile(t *testing.T) {
"-NoProfile",
"-NonInteractive",
"-ExecutionPolicy",
"Bypass",
"RemoteSigned",
"-File",
scriptPath,
}