--- status: accepted date: 2026-11-17 ---
ADR 0021: Linux releases also ship an AppImage, a deb and an rpm
Context
The Linux release is a bare binary that installs and updates itself (ADR 0014). Users who manage software through their distribution, or who want a single file with a menu entry and delta updates, have no package. ADR 0014 left system packages open, as long as they do not offer the self-install. The Craft apps (PhotoCraft) already ship a Linux packaging set: one script staging an FHS tree, nfpm for deb and rpm, an AppImage with a self-integrating AppRun, all built on the oldest supported Ubuntu LTS. The Linux binary needs the glibc it was built against (the v0.4.0 release binary needs 2.43, newer than Ubuntu 24.04 or Debian 13 have), which is what packages built on an old distro, or a Flatpak with its own runtime, avoid.
Decision
packaging/linux/package.sh builds rusty-teams-<version>-linux-<arch>.{AppImage,AppImage.zsync,deb,rpm,tar.gz} the same way PhotoCraft does, and build.yml attaches the AppImage, its .zsync, the deb and the rpm to every v* release, next to the unchanged bare binary and tarball. The Linux release job builds on Ubuntu 22.04, so the binary needs glibc 2.35. The desktop id stays rusty-teams (the window's app id); the AppStream component id is io.github.danieldaeschle.RustyTeams. A binary under /usr or /opt, or started from an AppImage (APPIMAGE set), counts as packaged and does not offer to install itself; outside the install folder it never updates itself either, so packages update through the package manager and the AppImage through its .zsync.
Consequences
- deb and rpm list the libraries the binary loads with
dlopen(Wayland, X11, Vulkan or EGL) as dependencies and the call stack's (PulseAudio, PipeWire, VA-API) as recommendations; they conflict with Microsoft's oldteamspackage, which also owned/usr/bin/teams. - The AppImage's
AppRunwrites~/.local/share/applications/rusty-teams.desktoplike the self-install does; an entry the self-install wrote keeps itsExec. - The Flatpak (
packaging/linux/flatpak-bundle.sh, app idio.github.danieldaeschle.RustyTeams) is released next to the other packages. The app starts the user's own browser with a debug port; inside the sandbox it finds, starts and stops the host's browser throughflatpak-spawn --host(crates/browser/src/host.rs). It brings its own runtime, so it has no glibc floor. Its CI step may fail without failing the release. - No package repository: deb and rpm are release downloads.
Source
| 1 | --- |
| 2 | status: accepted |
| 3 | date: 2026-11-17 |
| 4 | --- |
| 5 | |
| 6 | # ADR 0021: Linux releases also ship an AppImage, a deb and an rpm |
| 7 | |
| 8 | ## Context |
| 9 | |
| 10 | The Linux release is a bare binary that installs and updates itself (ADR 0014). Users who manage software through their distribution, or who want a single file with a menu entry and delta updates, have no package. ADR 0014 left system packages open, as long as they do not offer the self-install. The Craft apps (PhotoCraft) already ship a Linux packaging set: one script staging an FHS tree, nfpm for deb and rpm, an AppImage with a self-integrating `AppRun`, all built on the oldest supported Ubuntu LTS. The Linux binary needs the glibc it was built against (the v0.4.0 release binary needs 2.43, newer than Ubuntu 24.04 or Debian 13 have), which is what packages built on an old distro, or a Flatpak with its own runtime, avoid. |
| 11 | |
| 12 | ## Decision |
| 13 | |
| 14 | `packaging/linux/package.sh` builds `rusty-teams-<version>-linux-<arch>.{AppImage,AppImage.zsync,deb,rpm,tar.gz}` the same way PhotoCraft does, and `build.yml` attaches the AppImage, its `.zsync`, the deb and the rpm to every `v*` release, next to the unchanged bare binary and tarball. The Linux release job builds on Ubuntu 22.04, so the binary needs glibc 2.35. The desktop id stays `rusty-teams` (the window's app id); the AppStream component id is `io.github.danieldaeschle.RustyTeams`. A binary under `/usr` or `/opt`, or started from an AppImage (`APPIMAGE` set), counts as packaged and does not offer to install itself; outside the install folder it never updates itself either, so packages update through the package manager and the AppImage through its `.zsync`. |
| 15 | |
| 16 | ## Consequences |
| 17 | |
| 18 | - deb and rpm list the libraries the binary loads with `dlopen` (Wayland, X11, Vulkan or EGL) as dependencies and the call stack's (PulseAudio, PipeWire, VA-API) as recommendations; they conflict with Microsoft's old `teams` package, which also owned `/usr/bin/teams`. |
| 19 | - The AppImage's `AppRun` writes `~/.local/share/applications/rusty-teams.desktop` like the self-install does; an entry the self-install wrote keeps its `Exec`. |
| 20 | - The Flatpak (`packaging/linux/flatpak-bundle.sh`, app id `io.github.danieldaeschle.RustyTeams`) is released next to the other packages. The app starts the user's own browser with a debug port; inside the sandbox it finds, starts and stops the host's browser through `flatpak-spawn --host` (`crates/browser/src/host.rs`). It brings its own runtime, so it has no glibc floor. Its CI step may fail without failing the release. |
| 21 | - No package repository: deb and rpm are release downloads. |