feat(install): atomgit 国内镜像通道(tarball CDN + v5 API + raw contents) - #461
Merged
Merged
Conversation
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.
What
恢复 atomgit 国内镜像作为可选安装通道(
--atomgit/XIAOBEI_SOURCE=atomgit),修此前 [[32-atomgit-mirror-broken]] 三处全坏(raw 返 SPA HTML、API 被 CloudWAF 拦 418、v5.6.0 资产 404)。How
atomgit 不是 Gitea v1,是自研 v5 API,host/版本/路由都不同,按其真实接口分三路:
atomgit.com/wiseflow/xiaobei/releases/download/{tag}/...→ redirect 到file-cdn.gitcode.com签名 CDN(带 auth_key,匿名 GET 可下,~140MB)。api.atomgit.com/api/v5/repos/wiseflow/xiaobei/releases/latest取tag_name(非/api/v1)。api.atomgit.com/api/v5/repos/{o}/{r}/contents/{path}?ref={branch}返 JSON base64(/raw/branch/...路由返 SPA HTML 不可用)。install 脚本本体跑起来不依赖 raw;首装curl|bash那条单独走 contents API + base64 解码(见 scripts/README.md)。update.sh加--atomgit/--github:atomgit git remote 匿名 fetch/clone 实测可用,release 资产走 GitCode CDN。Files
scripts/install.shscripts/install.ps1scripts/update.shscripts/README.mdREADME.md验证
用户已在国内线路实测通过并推远端。Auto Release 已禁用,合此 PR 不 bump 版本,保持 v5.6.0。install 脚本走 raw URL 拉取,无需重建 tarball。