Skip to content

feat(update): 可选测试版更新渠道,并发布 1.9.0 正式版 - #45

Merged
kekemao00 merged 2 commits into
mainfrom
claude/project-thread-3fq7mf
Oct 12, 2026
Merged

kekemao00 merged 2 commits into
mainfrom
claude/project-thread-3fq7mf

Conversation

@kekemao00

Copy link
Copy Markdown
Owner

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。

验证

cd file-toolkit
uv run ruff check .
uv run pytest -q   # 238 passed, 2 skipped

新增测试:正式版渠道忽略预发布、测试版渠道取最新预发布并跳过草稿、同号正式版优先、渠道设置读写。

截图

设置页"更新渠道"一行的截图在项目文件 screenshots/AI智能任务/设置-更新渠道.png。

🤖 Generated with Claude Code

https://claude.ai/code/session_017bLiAcBunV9QFg5mss2f9N


Generated by Claude Code

@cr-gpt

cr-gpt Bot commented Oct 12, 2026

Copy link
Copy Markdown

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

@kekemao00 kekemao00 self-assigned this Oct 12, 2026
@kekemao00
kekemao00 merged commit 051c8d9 into main Oct 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants