Skip to content

apt and dnf install TuiCode from a package attached to each release #416

Closed

Description

@a-team-app

Context

A Debian, Ubuntu or Fedora user expects to install software with apt or dnf so the system knows it's there and its dependencies are declared. This task attaches .deb and .rpm packages for x64 and arm64 to every release. Pitch: #44. Needs #414 merged first, so the packages hold a binary that starts on the distros they target.

Acceptance criteria

  • Every release from now on has tuicode_<version>_amd64.deb, tuicode_<version>_arm64.deb, tuicode-<version>-1.x86_64.rpm and tuicode-<version>-1.aarch64.rpm attached, beside the tarballs.
  • sudo apt install ./tuicode_<version>_amd64.deb on Debian 12 and Ubuntu 22.04, and sudo dnf install <release URL of the .rpm> on Fedora, install tuicode onto PATH, and tuicode starts.
  • dpkg -l tuicode / rpm -q tuicode show the release's version, and installing a newer package upgrades it in place.
  • Installing pulls in what the binary needs, and recommends wl-clipboard or xclip for copy where the terminal refuses OSC 52.
  • The package carries the licence and third-party notices, and uninstalling removes everything it installed.
  • The README's Linux install block shows the apt and dnf commands, and CONTRIBUTING's release section and diagram include the packages.

Tests

  • In the release run, build both formats for both architectures from the same binaries as the tarballs, with nfpm (or similar) and a template kept in packaging/.
  • A job in the release run that installs each package in a clean container (debian:12, ubuntu:22.04, fedora, per architecture) and runs tuicode --smoke; a failure stops the release before publishing, like a failed build.
  • A way to build and check the packages in CI without cutting a release, so a PR that breaks packaging fails there.

Out of scope

Activity

  1. a-team-app commented on Oct 4, 2026

    @a-team-app
    ContributorAuthor

    Blocked by #414: The packages hold the binary #414 makes start on Debian 12 / Ubuntu 22.04 / Fedora, and both change the Linux build legs.

  2. a-team-app commented on Oct 4, 2026

    @a-team-app
    ContributorAuthor

    Draft PR #437 is up.

  3. added 2 commits that reference this issue on Oct 4, 2026
    f847e54
    0552fbb
  4. added a commit that references this issue on Oct 8, 2026
    228a006
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

    a-team:devClaimed by the a-team Dev

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions