Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

install.sh: asset matcher still greps for CommandCodeAI/gui — Linux/macOS installs can never resolve a release

未关闭 适合新手
#107 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
85/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
shell
领域
build-system, cli

调研方向

该错误位于 install.sh 的第 52 行,其中 awk 模式硬编码了旧的仓库别名 'CommandCodeAI/gui'。修复方法是更新该模式以匹配当前仓库 'CommandCodeAI/desktop',或者更好的是使用现有的 REPOSITORY 变量。同时检查第 232 行是否有过时的 macOS 错误消息。使用 COMMANDCODE_INSTALL_DRY_RUN=1 运行脚本,以验证其能正确解析类似 'CommandCode-*-amd64.deb' 的资源名称。

由索引模型根据 Issue 内容生成。

描述

Bug: install.sh on main can never match a release asset, so macOS/Linux installs always fail with "No verified package was found in the 20 newest releases."

Root cause: REPOSITORY was corrected to CommandCodeAI/desktop, but the awk matcher inside read_asset_metadata() still hardcodes the old repo slug:

# install.sh:52
/"url": "https:\/\/api.github.com\/repos\/CommandCodeAI\/gui\/releases\/assets\// {

Every asset url in the current release JSON is .../repos/CommandCodeAI/desktop/..., so in_asset is never set and no artifact can resolve.

Minimal fix:

- /"url": "https:\/\/api.github.com\/repos\/CommandCodeAI\/gui\/releases\/assets\// {
+ /"url": "https:\/\/api.github.com\/repos\/CommandCodeAI\/desktop\/releases\/assets\// {

or better, interpolate the existing variable so it can’t drift again:

/"url": "https:\/\/api.github.com\/repos\/" repo "\/releases\/assets\//"   # with -v repo="$REPOSITORY"

Also minor: install.sh:232 still fails Darwin:* with "The current macOS preview supports Apple silicon only", but Darwin:x86_64 is handled above it — the message is stale.

Suggested regression test: COMMANDCODE_INSTALL_DRY_RUN=1 ./install.sh asserting the script resolves a real asset name (e.g. CommandCode-*-amd64.deb) against the live release JSON.

Found while researching a fork — verified the matcher cannot hit the current release payload.

主要语言
Shell
星标
80
派生
2
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CommandCodeAI/desktop 的其他 Issue

查看 CommandCodeAI/desktop 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。