Repository navigation
Conversation
Collaborator
|
git可能部分用户未安装,容灾增强与多源重试与高可用镜像列表已扩充 |
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.
📌 问题背景
版本信息显示为空 / 未知:
data/version.json被忽略未纳入版本控制,FrameworkUpdater读取不到版本文件,导致管理后台系统更新页面当前版本显示为空或unknown。下载更新容易挂起或超时报错:
🛠️ 解决方案与变更
版本自动回退识别 (
web/tools/_updater/framework.py):data/version.json不存在或版本为unknown时,自动通过本地git rev-parse --short HEAD读取当前 commit SHA 及提交时间,并自动保存初始化version.json,确保初次安装版本信息即刻可见。更新下载容灾增强与多源重试 (
web/tools/_updater/framework.py):国内高可用镜像列表扩充 (
web/tools/_updater/shared.py):ghfast.top、gh-proxy.com、ghproxy.net等)。