Repository navigation
1.0.2 follow-up: receipt records the self-update - #222
Merged
Merged
Conversation
The drill could only infer that the updater bundle had been replaced from its mtime and the backup directory, because the receipt payload never included the field the install already computed. It does now, with a test that decodes the written receipt, and report 226 records the successful end-to-end verification. Signed-off-by: wangzhizhou <824219521@qq.com>
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.
真机演练(报告 226 §5)里,更新程序确实被替换了,但只能靠 mtime 与备份目录反推——因为
ReceiptPayload从来没编码updaterBundle,尽管InstallReceipt一直有这一列。改动
ReceiptPayload补updaterBundle(自更新落地路径;没做自更新时为 null)install-core.swift新增 7b 段:跑一次带自更新的安装,读回执 JSON 并断言含该字段真机复验结论(已通过)
payloadSHA256=732756e5…(= 1.0.2 ZIP).lampyris-updater-backup-2026-11-05T10-11-54Zupgrade-…/只剩 backup;~/Applications无 staging5d4271fb…、词库 1124 行不变长期挂着的「更新器自更新」验收项据此闭环(ROADMAP 已勾)。
make verifyPASS;离线 56 文件 / 303 例 PASS。