Repository navigation
Conversation
Packages reuse each leg's tested binary, restaged at /usr with a pinned nfpm. Each is asserted for files, architecture and dependencies, and the x86_64 and arm64 ones are installed and removed on clean Debian, Ubuntu, Fedora and Arch.
A bare '-' for the skipped rpm arch is not valid YAML.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The removal script skips disabling the unit when systemd is not booted, leaving enablement symlinks that can cause the service to start again after a later reinstall.
1 open issue
What changed in this PR
Adds native Linux packages alongside existing release archives, using the same tested binaries while preserving the tarballs’ /usr/local layout.
Changes:
- Builds
.deb,.rpm, and Arch packages for Linux release architectures, excluding RPM on ARMv6. - Adds package-content checks, container installation tests, and release asset verification.
- Documents package installation, compatibility, and service lifecycle behavior.
| File | Description |
|---|---|
scripts/test_linux_packages.sh |
Tests installation, execution, removal, and incompatible glibc rejection. |
scripts/build_linux_packages.sh |
Builds packages with pinned nfpm and architecture mappings. |
scripts/assert_linux_packages.sh |
Checks package contents, metadata, dependencies, and binary identity. |
README.md |
Introduces Linux packages and links installation guidance. |
packaging/preremove.sh |
Stops and disables the service on removal, not upgrade. |
packaging/postremove.sh |
Reloads systemd after package removal. |
packaging/postinstall.sh |
Creates the service account without enabling or starting the service. |
packaging/nfpm.yaml |
Defines package payloads, dependencies, and lifecycle hooks. |
docs/wiki/Installation.md |
Documents compatibility, verification, installation, and upgrades. |
contributors.md |
Updates packaging and release process guidance. |
.github/workflows/release.yml |
Verifies, checksums, and publishes Linux package assets. |
.github/workflows/ci.yml |
Extends shell linting to package maintainer scripts. |
.github/workflows/build.yml |
Stages, builds, validates, tests, and uploads Linux packages. |
.github/workflows/build-armv6.yml |
Builds, validates, and uploads ARMv6 Debian and Arch packages. |
Review effort: Balanced (adaptive)
3 tasks done
Enablement symlinks are not package-owned, so a chroot removal left them behind.
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.

Build native Linux packages (
.deb,.rpm, Arch.pkg.tar.zst) in CI for every published Linux leg and attach them to releases next to the tarballs.What
packaging/nfpm.yamland maintainer scripts.scripts/build_linux_packages.shdownloads nfpm 2.48.0 (version and sha256 pinned, per host arch), fills the placeholders and builds each format.CMAKE_INSTALL_PREFIX=/usr(no recompile), staged withDESTDIR, then reconfigured back to/usr/local. Acmpagainst the tarball's binary proves the packages ship the same file.sendspin-cli-<version>-<leg>.{deb,rpm,pkg.tar.zst}. This keeps the armv6 and armv7 debs apart even though both arearmhf.scripts/assert_linux_packages.shchecks each package's exact file list and modes, name, version, architecture and dependencies. It reads the glibc floor off the packaged binary and checks that all formats carry the same binary.scripts/test_linux_packages.shruns on x86_64 and arm64. It installs, runs and removes the packages on cleandebian:trixie,ubuntu:24.04andfedora:latest, plusarchlinux:lateston x86_64. It checks--version, thesendspin-cliaccount and audio group, the unit's/usr/binExecStart, that the unit is not enabled, and that removal leaves no files. It also checks thatdebian:bookwormrefuses the deb onlibc6 (>= 2.38).systemd-sysusers sendspin-cli.confand callsdaemon-reloadonly when systemd is booted. It never enables or starts the service. Preremove disables and stops the unit on removal but not on upgrade, and leaves the account and/var/lib/sendspin-cli.release.yml: both expected-asset lists,SHA256SUMSand the upload glob include the packages./usrvs/usr/localsplit. README and contributors.md point to it.Out of scope: signed apt/dnf repositories (follow-up, needs a signing key), snap, flatpak.
Compatibility
Nothing breaks for existing CLI users. The tarballs keep the same payload and the same
/usr/locallayout, and the existing payload assertions are unchanged.get_started_linux.shand the uninstaller are untouched, and no flags, config keys, socket protocol or state format changed. The release gains new assets. Packages install to/usr, and the docs say not to mix them with a/usr/localtarball install on the same machine.Testing
Run locally against an Ubuntu 24.04 build:
Not tested locally: