fix: 区分 Squirrel(上游)更新 与 TriFecta 更新;Sparkle 更新源改为 TriFecta - #7
Merged
Conversation
Owner
Author
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.


目的(fix)
修复设置面板「关于」页更新源混乱的问题:把上游 Squirrel(引擎)更新与 TriFecta(项目)更新两件事清晰区分,并把 Sparkle 更新源指向 TriFecta,避免用户被引导去安装上游 Squirrel 而覆盖本项目定制。
变更内容
1. 「关于」页区分两类更新(
AboutPage.swift)当前 → 上游最新(实时从api.github.com/repos/rime/squirrel/releases/latest取tag_name);附「打开上游 Releases」按钮。v1.1.1形式),实时从api.github.com/repos/thesadbee/TriFecta/releases/latest取最新 tag,显示当前 → 最新(有新版本时提示「(有新版本)」),提供「检查 TriFecta 更新」按钮。2. Sparkle 更新源改为 TriFecta(
resources/Info.plist+ 新增appcast.xml)SUEnableAutomaticChecks→false:关闭 Sparkle 自动检查,不再自动弹「鼠鬚管 1.1.2」上游提示(避免被上游 Squirrel 覆盖定制)。SUFeedURL→ TriFecta 自己的源:https://raw.githubusercontent.com/thesadbee/TriFecta/main/appcast.xml。appcast.xml作为 TriFecta 更新源的占位/参考。测试
bash settings/scripts/build-app.sh release编译通过。说明
sparkle:edSignature并把 appcast 放到公网位置(本次仅做指向 + 关闭自动检查)。