feat(release): publish and install release artifacts via Xiaomi FDS#1212
Merged
Conversation
2 tasks
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.
背景
GitHub Release 在中国大陆下载慢。改为发布到小米 FDS 对象存储(国内 CDN 快),并让安装脚本从 FDS 下载。GitHub Release 仍照常上传(双份,作为存档/海外来源)。
改动
script/fds-upload.ts(新):FDS 上传库 + CLI。Galaxy-V2 签名用 Nodecrypto实现(无 SDK / Python),上传后设公开读 ACL。凭证经MIMO_FDS_AK/MIMO_FDS_SK环境变量读取,不硬编码。script/build.ts:发版段在gh release upload之后,新增把所有dist/*.{zip,tar.gz}上传到 FDSreleases/v<version>/,并写releases/latest(版本号)。无凭证时跳过,本地 release 构建不受影响。install:从 FDS 下载——releases/latest解析最新版本,releases/v<version>/<filename>取包。基址可用MIMO_FDS_BASE覆盖。布局自洽:上传写什么路径,install 就读什么路径。
验证
bun typecheck通过备注
MIMO_FDS_AK/MIMO_FDS_SK(对目标 bucket 有写权限)。Test plan
releases/latest与releases/v<version>/产物就位curl -fsSL https://mimo.xiaomi.com/install | bash端到端安装