Skip to content

feat(install): atomgit 国内镜像通道(tarball CDN + v5 API + raw contents) - #461

Merged
bigbrother666sh merged 1 commit into
TeamWiseFlow:masterfrom
bigbrother666sh:master
Jul 22, 2026
Merged

feat(install): atomgit 国内镜像通道(tarball CDN + v5 API + raw contents)#461
bigbrother666sh merged 1 commit into
TeamWiseFlow:masterfrom
bigbrother666sh:master

Conversation

@bigbrother666sh

Copy link
Copy Markdown
Member

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/版本/路由都不同,按其真实接口分三路:

  • tarball 直链atomgit.com/wiseflow/xiaobei/releases/download/{tag}/... → redirect 到 file-cdn.gitcode.com 签名 CDN(带 auth_key,匿名 GET 可下,~140MB)。
  • latest tag 解析api.atomgit.com/api/v5/repos/wiseflow/xiaobei/releases/latesttag_name(非 /api/v1)。
  • 单文件 rawapi.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.sh scripts/install.ps1 scripts/update.sh scripts/README.md README.md

验证

用户已在国内线路实测通过并推远端。Auto Release 已禁用,合此 PR 不 bump 版本,保持 v5.6.0。install 脚本走 raw URL 拉取,无需重建 tarball。

@bigbrother666sh
bigbrother666sh merged commit bcef823 into TeamWiseFlow:master Jul 22, 2026
2 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.

1 participant