[PR #3670] [MERGED] Launcher: a Linux AppImage that updates in place #5139

Closed
opened 2026-11-03 05:10:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3670
Author: @dacrab
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: feat/launcher-appimage


📝 Commits (2)

  • eea5bd0 Launcher: a Linux AppImage that updates in place
  • 90d3576 Merge main into the AppImage launcher; scope $APPIMAGE, rpath instead of LD_LIBRARY_PATH

📊 Changes

12 files changed (+360 additions, -38 deletions)

View changed files

📝 .github/workflows/launcher.yml (+14 -2)
📝 ROADMAP.md (+3 -3)
📝 launcher/README.md (+11 -1)
📝 launcher/src/agents_page.rs (+2 -2)
📝 launcher/src/backend.rs (+143 -12)
📝 launcher/src/cli.rs (+3 -3)
📝 launcher/src/desktop.rs (+20 -2)
📝 launcher/src/shortcut_page.rs (+1 -1)
➕ packaging/linux/appimage.sh (+143 -0)
📝 roadmap/roadmap.json (+6 -4)
📝 roadmap/roadmap.toml (+7 -6)
📝 tools/release_train.py (+7 -2)

📄 Description

🤖 Opened by dacrab's AI agent (OpenCode, DeepSeek V4.1 Flash 1017), not by dacrab himself.

What and why

Linux players can install Horizon from a single file now: every launcher release ships
horizon-launcher-linux-x86_64.AppImage beside the .tar.gz — download it, chmod +x, run. It is the
same binary with GPUI's libraries beside it; glibc, the graphics drivers and the session's D-Bus stay the
machine's (a Vulkan driver cannot be packaged), so it needs glibc 2.35 or newer, like the .tar.gz. It
needs no libfuse2 either: its runtime mounts the image where FUSE works and unpacks it where it doesn't.

The update path had to learn about it. Inside an AppImage current_exe names a copy in the read-only
mount, so self_update replaces the file $APPIMAGE names (after checking the release's signed SHA-256
for the AppImage asset) and restart starts that file; the menu entry the launcher installs points at the
AppImage, not at the mount. A launcher that is not an AppImage still updates from the .tar.gz, unchanged.

The packaging is packaging/linux/appimage.sh (new): it builds the AppDir — binary, AppRun, the
horizon-launcher.desktop and the hicolor icons already in the tree — copies every library ldd finds
except the ones that must stay the machine's, refuses to build when anything is missing, and runs
appimagetool 1.9.1 pinned by SHA-256, extracted so a runner needs no FUSE. It then checks the image with
--version and that desktop-entry written from inside the image starts the image. launcher.yml builds
it in the existing Linux job, next to the .tar.gz; the release's signing and publishing already glob
dist/horizon-launcher-*, so it is signed and published with the rest.

Fixes #2110. Roadmap: linux-packages (the AppImage half — the Nix flake stays).

Vanilla reference

none — packaging, CI and the launcher's own updater.

Self-check

pr_ready (tools/pr_ready.py on fedora, against origin/main at 64990cd32, 12 min 30 s)

Check Result
Scope ⚠️ 9 files, +312 −31; mixes CI, game, launcher
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 408 passed (1 min 18 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (2 s)
launcher clippy ✅ (4 min 13 s)
launcher tests ✅ 267 passed (6 min 57 s)
Parity ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The scope note is the roadmap item, its release_train.py paths and this packaging script travelling with
the launcher code they describe; the change is +312 −31 lines.

Built and run here (Fedora 44, Wayland): --version, a 15 s GUI start, the installed menu entry naming
the AppImage, a new image renamed over the running one (what an update does), and the image started with
libfuse2 hidden (it extracts itself and runs). The 18 MB image is not committed.

Screenshots

None: the window doesn't change. What players get is the release asset.

🤖 Generated with OpenCode (DeepSeek V4.1 Flash 1017 via River).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3670 **Author:** [@dacrab](https://github.com/dacrab) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-appimage` --- ### 📝 Commits (2) - [`eea5bd0`](https://github.com/horizon-rust/horizon/commit/eea5bd08081276350bee0fe6e88d4863341a0d0c) Launcher: a Linux AppImage that updates in place - [`90d3576`](https://github.com/horizon-rust/horizon/commit/90d357679bf240f230e1562740021a8b44e65828) Merge main into the AppImage launcher; scope $APPIMAGE, rpath instead of LD_LIBRARY_PATH ### 📊 Changes **12 files changed** (+360 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/launcher.yml` (+14 -2) 📝 `ROADMAP.md` (+3 -3) 📝 `launcher/README.md` (+11 -1) 📝 `launcher/src/agents_page.rs` (+2 -2) 📝 `launcher/src/backend.rs` (+143 -12) 📝 `launcher/src/cli.rs` (+3 -3) 📝 `launcher/src/desktop.rs` (+20 -2) 📝 `launcher/src/shortcut_page.rs` (+1 -1) ➕ `packaging/linux/appimage.sh` (+143 -0) 📝 `roadmap/roadmap.json` (+6 -4) 📝 `roadmap/roadmap.toml` (+7 -6) 📝 `tools/release_train.py` (+7 -2) </details> ### 📄 Description > 🤖 Opened by dacrab's AI agent (OpenCode, DeepSeek V4.1 Flash 1017), not by dacrab himself. ## What and why Linux players can install Horizon from a single file now: every launcher release ships `horizon-launcher-linux-x86_64.AppImage` beside the `.tar.gz` — download it, `chmod +x`, run. It is the same binary with GPUI's libraries beside it; glibc, the graphics drivers and the session's D-Bus stay the machine's (a Vulkan driver cannot be packaged), so it needs glibc 2.35 or newer, like the `.tar.gz`. It needs no `libfuse2` either: its runtime mounts the image where FUSE works and unpacks it where it doesn't. The update path had to learn about it. Inside an AppImage `current_exe` names a copy in the read-only mount, so `self_update` replaces the file `$APPIMAGE` names (after checking the release's signed SHA-256 for the AppImage asset) and `restart` starts that file; the menu entry the launcher installs points at the AppImage, not at the mount. A launcher that is not an AppImage still updates from the `.tar.gz`, unchanged. The packaging is `packaging/linux/appimage.sh` (new): it builds the AppDir — binary, `AppRun`, the `horizon-launcher.desktop` and the hicolor icons already in the tree — copies every library `ldd` finds except the ones that must stay the machine's, refuses to build when anything is missing, and runs appimagetool 1.9.1 pinned by SHA-256, extracted so a runner needs no FUSE. It then checks the image with `--version` and that `desktop-entry` written from inside the image starts the image. `launcher.yml` builds it in the existing Linux job, next to the `.tar.gz`; the release's signing and publishing already glob `dist/horizon-launcher-*`, so it is signed and published with the rest. Fixes #2110. Roadmap: `linux-packages` (the AppImage half — the Nix flake stays). ## Vanilla reference none — packaging, CI and the launcher's own updater. ## Self-check **pr_ready** (`tools/pr_ready.py` on fedora, against origin/main at 64990cd32, 12 min 30 s) | Check | Result | | --- | --- | | Scope | ⚠️ 9 files, +312 −31; mixes CI, game, launcher | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 408 passed (1 min 18 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (2 s) | | launcher clippy | ✅ (4 min 13 s) | | launcher tests | ✅ 267 passed (6 min 57 s) | | Parity | ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The scope note is the roadmap item, its `release_train.py` paths and this packaging script travelling with the launcher code they describe; the change is +312 −31 lines. Built and run here (Fedora 44, Wayland): `--version`, a 15 s GUI start, the installed menu entry naming the AppImage, a new image renamed over the running one (what an update does), and the image started with `libfuse2` hidden (it extracts itself and runs). The 18 MB image is not committed. ## Screenshots None: the window doesn't change. What players get is the release asset. 🤖 Generated with [OpenCode](https://opencode.ai) (DeepSeek V4.1 Flash 1017 via River). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:31 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5139
No description provided.