Skip to content

Ship .deb packages for Debian and Ubuntu with each release #576

Closed

Description

@LeMyst

Releases ship RPMs for Fedora (packaging/fedora), but nothing for Debian or Ubuntu. Users there have to pick a musl tarball, or build with cargo install, which needs a Rust toolchain and a large build.

Proposal

  • packaging/debian/build-deb.sh, modelled on the Fedora packaging:
    • Built with the same features and without self-update, since apt owns the binary.
    • Installs the binary plus bash/zsh/fish completions.
    • Depends: computed by dpkg-shlibdeps. With rustls and bundled SQLite, that is only libc6 and libgcc-s1.
  • Built in an ubuntu:22.04 container (glibc 2.35), so a single package per architecture installs on Ubuntu 22.04+ and Debian 12+.
  • A deb.yaml workflow, like rpm.yaml: it builds on demand and on packaging changes, then installs and runs each package on Debian 12, Debian 13, Ubuntu 22.04 and Ubuntu 24.04.
  • A deb_build job in the release workflow that attaches cookcli_<version>-1_{amd64,arm64}.deb to each release.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions