Repository navigation
feat(update): 可选测试版更新渠道,并发布 1.9.0 正式版 - #45
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017bLiAcBunV9QFg5mss2f9N
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017bLiAcBunV9QFg5mss2f9N
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
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.
Requested by ColeMao · project thread
Before: 应用内检查更新只看 GitHub 的
releases/latest,预发布版(如 v1.9.0-beta.1)永远不会提示,想试测试版只能自己去网页下载。After: 设置 → 关于 新增"更新渠道:正式版 / 测试版",默认正式版,行为不变;选测试版后,检查更新会在最近的发布里取版本号最高的一个(预发布也算,草稿跳过),同一版本号的正式版仍然优先于它的测试版。版本号升到 1.9.0,合并后发正式版,带上 #43 的 AI 智能任务。
How:
update_service.fetch_latest(include_prerelease=...):正式版渠道照旧请求releases/latest,测试版渠道请求releases?per_page=20并按现有的 SemVer 比较取最大;渠道存在设置项update_channel。验证
新增测试:正式版渠道忽略预发布、测试版渠道取最新预发布并跳过草稿、同号正式版优先、渠道设置读写。
截图
设置页"更新渠道"一行的截图在项目文件
screenshots/AI智能任务/设置-更新渠道.png。🤖 Generated with Claude Code
https://claude.ai/code/session_017bLiAcBunV9QFg5mss2f9N
Generated by Claude Code