Conversation
v1.16.0 GitHub Release 资产仍是 bee- 前缀,包内二进制名为 bee。 install.sh / install.ps1 先试 amber-,404 再回退 bee-,并统一安装为 amber。 Co-authored-by: Henry Zhang <hello@zhanghe.dev>
|
zh30
marked this pull request as ready for review
September 18, 2026 10:20
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.
根因
curl -fsSL https://get.amberjs.com/install.sh | sh在 Apple Silicon 上 404,已当场核对:install.sh只下载amber-${tag}-${target}.tar.gzv1.16.0原先只有bee-前缀资产(例如bee-v1.16.0-aarch64-apple-darwin.tar.gz)bee,不是amberamber-v1.16.0-aarch64-apple-darwin.tar.gz当时返回 HTTP 404这是品牌从 Bee → Amber 后,安装脚本已改名前缀,但
v1.16.0发版工作流仍按旧名上传。当前main上的.github/workflows/release-assets.yml已经产出amber-前缀和包内amber二进制,后续 tag 不需要再改工作流逻辑。变更范围
install.sh+apps/website/public/install.sh(保持一致)amber-${tag}-${target}.tar.gz,404 再试bee-…amber或bee,安装为$AMBER_INSTALL_DIR/amberset -e、POSIXsh;shellcheck -s sh通过--print-asset-urls/AMBER_RELEASE_BASE便于测试install.ps1+ website 副本:同样先amber-*.zip再bee-*.zip,接受amber.exe/bee.exe,安装为amber.exerelease-assets.yml:仅加注释,明确后续发版必须继续用amber-(已是现状,没有改回bee-)apps/website/README.md:写清get.amberjs.com如何更新tests/install_script_fallback_tests.rs:本地 HTTP fixture 覆盖 v1.16.0 +aarch64-apple-darwin回退到bee-并安装出名为amber的二进制影响模块
安装脚本、官网 public 副本、Release 资产命名约定(文档/测试锁定)。运行时 / CLI / Dependabot / #92 CI 测试不在范围。
已做的线上补救(v1.16.0 资产)
已用 GitHub token 给
v1.16.0补传 5 个amber-v1.16.0-…资产。不是原bee-文件的字节级拷贝:从对应bee-包取出二进制,改名为amber/amber.exe后重打包,这样:install.sh(只认amber-URL + 包内amber)现在就能过,不必等get.amberjs.com更新bee-资产仍保留,新脚本的回退路径也继续有效已核对:
amber-v1.16.0-aarch64-apple-darwin.tar.gz→ HTTP 200,包内文件名amberamber或amber.exev1.16.0linux x64:先试amber-(现已 200),装到名为amber的二进制,--version输出bee 1.16.0(旧二进制自身的产品名,未改内容)get.amberjs.com如何更新get.amberjs.com是官网 Worker 的自定义域(apps/website/wrangler.toml),没有 GitHub Actions 自动部署。本环境没有CLOUDFLARE_API_TOKEN,无法代为发布。src/worker.ts对/install.sh、/install.ps1的顺序是:R2 桶amber-dist里有对象就用 R2,否则回退到 Worker 静态资源。当前线上响应头是content-type: application/x-sh+max-age=0(与amberjs.com/install.sh同一 etag),说明 现在走的是静态资源,不是 R2。合并后 Henry 在能访问该 Worker 的机器上跑(让线上脚本带上 bee- 回退,兼容其它旧 tag):
cd apps/website pnpm install --frozen-lockfile pnpm run deployprebuild会把仓库根目录的install.sh/install.ps1拷进public/。若以后 R2 里放了
install.sh,它会盖住这次 deploy。那时还要:现在不必等这次 deploy,Apple Silicon 上的旧
curl | sh也应已能装v1.16.0(因为amber-资产和包内amber二进制都在了)。验证步骤
本机结果:
shellcheck -s sh install.sh通过cargo test --test install_script_fallback_tests:7/7 通过cargo test --test release_workflow_tests:安装脚本相关用例通过;macos_x86_64_asset_job_uses_live_intel_runner与windows_sys_imports_match_v0_52_modules失败,属于仓库既有问题,与本次改动无关(fix: 修复 CI 高失败率:fmt/audit/tests/docker #92 / Dependabot 不在范围)v1.16.0安装成功未验证项
curl | sh(darwin arm64 资产已存在且包内为amber,但未在 M 系列机器上执行)install.ps1在 Windows 上的端到端wrangler deploy(缺 Cloudflare secret)相关:官网安装文档 / README 仍指向
get.amberjs.com;后续 tag 由现有release-assets.yml产出amber-资产。