Repository navigation
iTimer 1.12.0: 应用内检查更新并下载安装新版本 - #6
Merged
Merged
Conversation
启动时和之后每天读取 GitHub Releases,有新版本时面板底部和设置图标给出提示; 设置 › 软件更新列出更新内容,「下载并安装」按芯片下载 DMG,校验 SHA-256、 bundle id、版本和签名后替换当前应用并重新打开;无法原地替换时打开 DMG 手动安装。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.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.
改了什么
SHA256SUMS校验 SHA-256,再确认 bundle id、版本和签名,替换当前应用后自动重新打开。替换失败时旧版本放回原处。测试
swift test:93 个测试通过(新增 8 个,其中一个用真实 DMG 走挂载、校验、复制、替换全流程)update场景(background 模式),对复制出的应用跑:SHA256SUMS校验和附件 digest 校验两种路径都安装成功;签名有效、无隔离标记、无残留挂载;重启助手在进程退出后打开探针应用drawer场景回归通过🤖 Generated with Claude Code