feat(update): securely stage verified packages

This commit is contained in:
chengma
2026-07-13 12:02:47 +08:00
parent 567d4e7b68
commit 3ad9ffd239
8 changed files with 616 additions and 3 deletions
+4 -2
View File
@@ -3,7 +3,7 @@ id: T-616
title: 自动升级安全下载校验与同盘暂存
phase: 8
deps: [T-615]
status: TODO
status: DONE
created: 2026-07-13
---
@@ -44,4 +44,6 @@ created: 2026-07-13
## 执行记录
(完成后记录实现、验证命令与结果。)
- 2026-07-13:新增无Qt依赖的 `app/update_installer.py`,实现受信任HTTPS下载、同盘part暂存、大小/hash校验、安全zip解压、manifest逐文件复核及可复用 `pending.json`。
- 2026-07-13:补齐版本接口自动安装元数据透传;所有失败均发生在当前程序替换前,取消与无效pending会清理不完整状态,`data/` 不参与更新。
- 2026-07-13:干净worktree验证通过:ruff、compileall、完整unittest(400项)和 `git diff --check`。