Skip to content

开发者中心「我的软件包」新增下载 / 复制安装命令按钮#4

Draft
eggfly wants to merge 1 commit into
mainfrom
cursor/portal-mine-download-button-6417
Draft

开发者中心「我的软件包」新增下载 / 复制安装命令按钮#4
eggfly wants to merge 1 commit into
mainfrom
cursor/portal-mine-download-button-6417

Conversation

@eggfly

@eggfly eggfly commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

内容

"我的软件包"表格每行的操作列,从只有「下架」扩展为三个按钮:

  • 下载:直接下载该包的 .deb(APT 索引里的 Filename 本身就是完整的 Release 直链,直接用);索引缺地址时按钮置灰。
  • 复制安装命令:一键复制 sudo apt update && sudo apt install <包名> 到剪贴板。
  • 下架:逻辑不变,但确认框/按钮文案改为体现"自动移除、无需人工审核"(packages 侧 workflow 已 AUTO_MERGE: "true")。

样式上把危险色收敛到 .btn-danger,新增的中性按钮用统一 .btn 样式;版本旁顺带显示包体积。

说明 / 与"下架没生成 PR"的关系

排查发现:packages 仓库的 Process Web Unpublish workflow 此前从未被触发——因为点下架时 Worker 上 BOT_TOKEN 还没配好,dispatch 没发出去。BOT_TOKEN 现已同步到 Worker,重试下架即可自动触发并自动合并移除 PR(无需人工)。本 PR 不改这条链路,只改前端按钮与文案。

验证

  • node --check site/app.js 通过;node --test 4/4 通过。
Open in Web Open in Cursor 

In the 我的软件包 table each row now has three actions:
- 下载: direct link to the package .deb (Filename in the APT index is an
  absolute release URL)
- 复制安装命令: copies 'sudo apt update && sudo apt install <pkg>' to the clipboard
- 下架: unchanged, but the confirm/label wording now reflects that removal is
  automatic (the packages workflow auto-merges) rather than a manual PR

Scope the danger styling to .btn-danger so the new neutral buttons render
correctly, and show the package size next to the version.

Co-authored-by: eggfly <lihaohua90@gmail.com>
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.

2 participants