Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
管理器断网时,如果已有核对有效、且比已安装版本新的暂存,现在可以继续更新。只有 Prepare 返回
update_unavailable才尝试复用;复用前重新取得更新锁,核对暂存指纹和版本记录。取消、损坏暂存、版本不符和其他错误仍终止任务。普通 CLI Prepare 和 Install 的行为保持原样。每次交接生成随机 ID,结果分别保存在
.update/manager-results/<ID>.json。CLI 把同一个 ID 传给重开的管理器。若已有管理器在运行,这次启动把结果转交给它;页面从服务端领取一次后才显示提示。普通启动不读取旧结果,多个窗口也不会重复提示。中英文 API 文档一并更新。本 PR 只处理 P3-1、P3-2,不含 P2 交接空档、P3-3 下载阶段互斥或路径身份修复。
验证在 Windows 上使用 Go 1.26.5:
gofmt -l .、go vet ./...、go test ./... -count=1通过;darwin/arm64、linux/amd64 的go vet ./...通过。node --experimental-vm-modules --test scripts/test_update_handoff.mjs,合计 35 项通过。新增测试执行实际的update.js,覆盖多窗口、刷新、同秒不同 ID 和断线重试。scripts/repo_checks.py、scripts/test_repo_checks.py、scripts/test_measure_trim.py通过。build.ps1构建 CLI 和 GUI 通过。原生验证使用占位模拟器文件和真实构建的管理器、CLI。没有启动或编译模拟器,没有测试游戏;提示内容由前端模块测试覆盖,未手工打开 Edge 做视觉验收。
Refs ModAVD/ModAVD#170