feat(packaging): ship qbzd binary and user unit in deb/rpm and tarball
cc
This commit is contained in:
4 files changed
+72
No files matched your search
@@ -192,6 +192,17 @@ jobs:
|
||||
with:
|
||||
name: qbz-linux-x86_64
|
||||
|
||||
# T14: the slint-free qbzd binary, produced by T15's build job
|
||||
# (extends the `build` job above to also compile `-p qbzd` and
|
||||
# upload it under this artifact name). Consumed for deb/rpm (nfpm)
|
||||
# and the main AUR/Gentoo tarball below. T15's own ubuntu-22.04
|
||||
# lower-glibc-floor build feeds the separate standalone qbzd
|
||||
# tarball only — not this artifact.
|
||||
- name: Download qbzd binary
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: qbzd-linux-x86_64
|
||||
|
||||
- name: Install nfpm
|
||||
run: |
|
||||
echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | \
|
||||
@@ -207,6 +218,7 @@ jobs:
|
||||
QBZ_BINARY: ./qbz
|
||||
run: |
|
||||
chmod +x qbz
|
||||
chmod +x qbzd
|
||||
mkdir -p dist
|
||||
nfpm package -f packaging/nfpm/nfpm.yaml -p deb \
|
||||
-t "dist/QBZ_${VERSION}_amd64.deb"
|
||||
@@ -265,6 +277,18 @@ jobs:
|
||||
cp packaging/icons/128x128.png "tarball-staging/${TARBALL_DIR}/icons/hicolor/128x128/apps/qbz.png"
|
||||
cp packaging/icons/256x256.png "tarball-staging/${TARBALL_DIR}/icons/hicolor/256x256/apps/qbz.png"
|
||||
cp packaging/linux/qbz.desktop "tarball-staging/${TARBALL_DIR}/qbz.desktop"
|
||||
# Additive (T14): qbzd + its user unit + shell completions. Every
|
||||
# entry above is untouched — the layout contract (header lines
|
||||
# 10-14) forbids renaming/moving existing entries. AUR/Gentoo/flake
|
||||
# install-line updates to pick these up are P1 (T22, per D13); the
|
||||
# files are inert there until then.
|
||||
cp qbzd "tarball-staging/${TARBALL_DIR}/qbzd"
|
||||
chmod +x "tarball-staging/${TARBALL_DIR}/qbzd"
|
||||
cp crates/qbzd/service/qbzd.service "tarball-staging/${TARBALL_DIR}/qbzd.service"
|
||||
mkdir -p "tarball-staging/${TARBALL_DIR}/completions"
|
||||
./qbzd completions bash > "tarball-staging/${TARBALL_DIR}/completions/qbzd.bash"
|
||||
./qbzd completions zsh > "tarball-staging/${TARBALL_DIR}/completions/qbzd.zsh"
|
||||
./qbzd completions fish > "tarball-staging/${TARBALL_DIR}/completions/qbzd.fish"
|
||||
tar -czvf "dist/qbz_${VERSION}_amd64.tar.gz" -C tarball-staging "${TARBALL_DIR}"
|
||||
ls -la dist
|
||||
|
||||
|
||||
Reference in new issue
Block a user