Linux desktop: optimized release build, installer, Linux gaps

Build: split Dart debug info out of libapp.so (13.96 -> 11.27 MB, symbols
kept in the cache) and fix icon tree shaking, which Flutter 3.44's Linux
CMake backend silently disables by quoting the define; the build image
patches its SDK copy (MaterialIcons 1.6 MB -> 25 KB). Impeller cannot be
enabled in a Linux release build and was slower in a profile-build bench.

Install: `./install --linux --install` installs the bundle into
<prefix>/lib/app-linux with com.pipelines.app.desktop (the GTK/Wayland
app id), its icon and a ~/.local/bin/pipelines-app link, through
scripts/install-linux-app.sh.

Linux gaps: notifications through the freedesktop daemon; HTML artifacts
explain the missing web view instead of throwing; no Share for files;
a GTK clipboard reader for pasting files and screenshots (Ctrl+V and
Omarchy's Super+V); GTK header bar only on GNOME; window icon.

Bench: native fixture frame log, wheel/mark steps and
tool/perf/linux_desktop_bench.py (private Xvfb); results in
app/notes/linux-desktop-optimized.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 12:54:18 +00:00
parent c4de1de27b
commit 8138cdc3d9
26 changed files with 722 additions and 60 deletions
+20
View File
@@ -182,6 +182,7 @@ Options: `--server-url ws(s)://host:port/connect`, `--notes TEXT`, `--prefix`.
```sh
./install --linux --output ./dist
./install --linux --install # also install it for this user (launcher, icon)
./install --macos --flutter /path/to/flutter --output ./dist
# Offer this desktop build through an installed server's update feed:
./install --linux --publish --notes "Release notes"
@@ -195,6 +196,25 @@ from the `pipelines` server CLI. The target Linux desktop needs GTK 3 and its
runtime libraries (Debian/Ubuntu: `libgtk-3-0`, `libstdc++6`, `liblzma5`). This is a
portable bundle, not a package-manager installation or a server installation.
`./install --linux --install` also installs it for the current user:
the bundle goes to `<prefix>/lib/app-linux` (default
`~/.local/share/pipelines/lib/app-linux`; the previous one is kept as
`app-linux.previous`), with `~/.local/share/applications/com.pipelines.app.desktop`,
its icon in `~/.local/share/icons/hicolor` and a `~/.local/bin/pipelines-app`
link. `scripts/install-linux-app.sh <archive>` installs a downloaded archive the
same way. The desktop entry is named after the GTK application id, which is
also the Wayland app id (Hyprland's window class), so launchers, docks and
window rules match the window. The app runs as a native Wayland client (GTK
picks Wayland when `WAYLAND_DISPLAY` is set and `GDK_BACKEND` is not forced to
`x11`); it draws a GTK header bar only on GNOME.
Release builds are size-optimised: Dart debug symbols are split out
(`--split-debug-info`, kept in the build cache under `.debug-info/` for
`flutter symbolize`) and the icon fonts are tree-shaken (the build image fixes
Flutter 3.44's Linux backend, which otherwise ships the full MaterialIcons
font). The Linux app has no web view or file share sheet, so HTML artifacts
show an explanation instead of a preview and Share is not offered (Download is).
macOS 12 or newer is required. macOS builds run natively with Xcode and the pinned Flutter version from
`app/.flutter-version`; they do not require Docker. The build targets the build
machine's architecture and records the actual executable architecture in the