开发者中心「我的软件包」新增下载 / 复制安装命令按钮#4
Draft
eggfly wants to merge 1 commit into
Draft
Conversation
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>
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.
内容
"我的软件包"表格每行的操作列,从只有「下架」扩展为三个按钮:
.deb(APT 索引里的Filename本身就是完整的 Release 直链,直接用);索引缺地址时按钮置灰。sudo apt update && sudo apt install <包名>到剪贴板。AUTO_MERGE: "true")。样式上把危险色收敛到
.btn-danger,新增的中性按钮用统一.btn样式;版本旁顺带显示包体积。说明 / 与"下架没生成 PR"的关系
排查发现:packages 仓库的
Process Web Unpublishworkflow 此前从未被触发——因为点下架时 Worker 上BOT_TOKEN还没配好,dispatch 没发出去。BOT_TOKEN现已同步到 Worker,重试下架即可自动触发并自动合并移除 PR(无需人工)。本 PR 不改这条链路,只改前端按钮与文案。验证
node --check site/app.js通过;node --test4/4 通过。