feat: release 增加 deb 包(加入 bash-agent 聚合 apt 源) - #1
Merged
Conversation
- scripts/build-deb.sh:将 mcpc-linux-{amd64,arm64} 打包为
mcpc_<ver>_{amd64,arm64}.deb(/usr/bin/mcpc,Depends: ca-certificates,
SOURCE_DATE_EPOCH 可复现构建)
- ci.yml release job:linux 矩阵项构建 deb 并随 release 上传
- README:补 APT 安装方式
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.
概述
mcpc 的 release 增加 Debian 包(
mcpc_<ver>_{amd64,arm64}.deb),供 bash-agent 聚合 APT 源(PR lloydzhou/bash-agent#91)拉取。用户随后可通过apt-get install mcpc安装。改动
scripts/build-deb.sh <version> <binary>:从mcpc-linux-{amd64,arm64}打包 deb,安装到/usr/bin/mcpcSection: utils、Depends: ca-certificates(Rust 静态产物无 glibc 额外依赖)SOURCE_DATE_EPOCH可复现构建(对齐 bash-agent 的 build-deb.sh 规范)dpkg-deb --root-owner-group -Zxz -z9ci.ymlrelease job:linux 矩阵项(amd64/arm64)构建后调用脚本,deb 随 release assets 上传(darwin 项不受影响)README:Install 段补 APT 方式验证(本地 docker ubuntu:24.04)
mcpc-linux-amd64实测打包 →dpkg-deb -fcontrol 字段完整、dpkg-deb -c内容正确(usr/bin/mcpc,时间戳归一)build-apt-repo.sh:Packages 索引按架构正确生成mcpc条目,pool 收包正常发版计划
合并后打
v0.1.1tag(v0.1.0 无 deb 资产不可复用),release CI 自动产出 deb 资产,随后在 bash-agent 手动跑一次 APT Republish workflow 刷新源。