install.sh: honor PLANNOTATOR_RELEASE_DOWNLOAD_URL for the binary download
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
硬编码的 GitHub 地址是 install.sh 第 848 行附近的 binary_url。PLANNOTATOR_RELEASE_DOWNLOAD_URL 覆盖项已用于 update-prepare 中获取 .sha256,因此请沿用相同的模式。先阅读 install.sh 如何构建 binary_url,以及如何检查 PLANNOTATOR_EXPECTED_SHA256。完成的标准是:设置了覆盖项时,二进制文件和校验和都来自该覆盖项;未设置时回退到 GitHub;并且校验和仍然对安装进行校验把关。
由索引模型根据 Issue 内容生成。
描述
Problem
On some networks, downloading release assets from github.com is very slow. Here it ran at about 110 KB/s, so the ~195 MB plannotator-darwin-arm64 took about 25 minutes, and the update lock was held the whole time. A nearby machine downloads the same file in seconds and could serve it as a mirror. Plannotator already has a setting for this, but the installer ignores it for the binary.
Current behavior (0.28.63)
- The app accepts
PLANNOTATOR_RELEASE_DOWNLOAD_URL, which passesisAllowedOverrideUrl.update-prepareuses it to fetch the.sha256. install.shhardcodes GitHub for the binary (line 848):
So the override changes where the checksum comes from, but the 195 MB download still goes to github.com.binary_url="https://github.com/${REPO}/releases/download/${latest_tag}/${binary_name}"
Request
Make install.sh use PLANNOTATOR_RELEASE_DOWNLOAD_URL for the binary and its .sha256 when set, and fall back to GitHub when it isn't:
release_base="${PLANNOTATOR_RELEASE_DOWNLOAD_URL:-https://github.com/${REPO}/releases/download}"
binary_url="${release_base}/${latest_tag}/${binary_name}"
The pinned SHA-256 check (PLANNOTATOR_EXPECTED_SHA256) still guards the file, so a mirror can't swap in a different binary.
Why
With this change, a slow link can point updates at a mirror and keep the normal path: auto-update, Update now, checksum and attestation checks. Without it, the only workaround is to copy the binary by hand into the installer's temp download file mid-update, which depends on internal details.
- 主要语言
- TypeScript
- 星标
- 8.7k
- 派生
- 649
- 平均合并
- 10 小时 45 分钟
- 30 天内合并 PR
- 830
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
backnotprop/plannotator 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
backnotprop/plannotator#2643 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
backnotprop/plannotator#2243 · 2 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
Annotate documentation omits per-file version history and privacy controls可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
backnotprop/plannotator#1086 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 半天 新手友好度 45/100
backnotprop/plannotator#3301 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
backnotprop/plannotator#3299 ·
维护者通常 1 天内回复
查看 backnotprop/plannotator 的全部 Issue
相似的 Issue
-
Resources: Update work of urumqi可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
railmapgen/rmp-gallery#4176 ·
维护者通常 2 天内回复
-
GraphQL custom headers duplicate differently cased default headers可能已有人在做 @yxr-2025 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
enhancement sharing & sync
难度 1/5 1 小时以内 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
HelpCode-ai/anythingmcp#1659 · 1 条评论 ·
维护者通常 1 天内回复