Skip to content

package: an AppImage of the Linux release - #249

Open
gamboozino wants to merge 1 commit into
droogie:masterfrom
gamboozino:package/appimage
Open

gamboozino wants to merge 1 commit into
droogie:masterfrom
gamboozino:package/appimage

Conversation

@gamboozino

Copy link
Copy Markdown

The Linux tarball as one executable file, for players who would rather not keep a folder: bbhost-linux-<version>-x86_64.AppImage, made in the publish job from the tarball package-linux already built, so it carries the same files.

Why

The tarball stays as it is; this is a second way to get the same files.

  • One file to download, mark executable and run, with no folder to unpack and keep. Updating means replacing that file. Settings, saves and the account are in ~/.local/share/bbhost already, so nothing carries over by hand.
  • No mixing of versions. Copying a new tarball or kit over the old folder, as STEAMDECK.md says to, can leave files the new version dropped, such as an old patch or plugin. An AppImage only ever holds its own version's files, read-only.
  • Desktop integration. AppImage managers such as Gear Lever and AppImageLauncher, common on Bazzite, SteamOS and other immutable distributions, add it to the application menu with bbhost's icon and its .desktop entry, which the tarball doesn't have.
  • One path for a launcher entry or a non-Steam game in Steam. Arguments pass straight through (--setup, --no-setup, --config), as with run-bbhost.sh.
  • A smaller download: 53 MB against 63 MB (zstd against gzip).

What's in it

  • tools/package_appimage.sh TARBALL OUTDIR unpacks the tarball under bbhost/ in an AppDir and adds an AppRun, a .desktop file and the icon (res/bbhost.ico's 256 px image). It packs that with mksquashfs (zstd) behind AppImage's type-2 runtime, release 20251108, pinned by SHA-256 like DXC and the NGX files. That's what appimagetool does, without needing FUSE on the runner. The runtime is static with its own FUSE 3, so players need no libfuse2.
  • The runtime's licences ship in the image under licenses/appimage-runtime: its own (MIT) and libfuse's (LGPL-2.1, linked into it), with a notice naming the other libraries in it and where their source is (third_party/appimage-runtime).
  • bbhost reads everything beside its executable and writes nothing there, so it runs from the read-only mount unchanged. The updater's .old removal and the plugin .new renames fail quietly there, and "Get the official plugins" writes to the per-user folder. AppRun stands in for run-bbhost.sh: it keeps each session's log, the newest ten, and F12's dumps (through BBHOST_CAPTURE_DIR) in ~/.local/share/bbhost/logs, and passes its arguments to bbhost.
  • tools/check_release_bundle.sh extracts the AppImage and checks its files as a Linux bundle (DXC, LICENSE-EXCEPTION, the pipeline list, DLSS and FSR 3), plus the runtime's licences.
  • release.yml: the publish job builds it (installing squashfs-tools when the runner lacks it), uploads it as the appimage artifact, and adds it to the release and SHA256SUMS. The PR comment names it. About a minute and 53 MB per run.
  • tools/announce_release.py links it in the Discord post. README, docs/building.md and docs/running.md mention it.

Checked

  • Built in ubuntu:24.04 from the v0.2.34 release tarball: 53 MB against the tarball's 63.
  • On CachyOS (KDE Plasma 6.8, Wayland, RX 9070 XT): the game starts and plays from the AppImage, with the setup window, plugins, patches, DXC, FSR 3 and the pipeline list all found through /proc/self/exe inside the mount. Settings and saves go to ~/.local/share/bbhost, and logs to its logs/, pruned to ten, with a home path containing spaces too.
  • check_release_bundle.sh passes on the release's tarball plus this AppImage, and fails an AppImage with libdxcompiler.so taken out ("no libdxcompiler.so beside the executable").
  • The Actions run of this PR is the first CI build of it; the appimage artifact is there to try.

The Linux tarball as one executable file, made in the publish job from
the tarball package-linux built (tools/package_appimage.sh): its files
under bbhost/ in an AppDir with an AppRun, a .desktop file and the icon,
packed by mksquashfs behind AppImage's type-2 runtime, release 20251108,
pinned by SHA-256. The runtime's licences (MIT, and libfuse's LGPL-2.1,
linked into it) ship in the image from third_party/appimage-runtime.

bbhost writes nothing beside its executable, so it runs from the
read-only mount as it is; AppRun keeps the logs and F12's dumps in
~/.local/share/bbhost/logs. check_release_bundle.sh extracts the image
and checks its files as a Linux bundle's, and its runtime's licences.

Checked: built in ubuntu:24.04 from the v0.2.34 tarball (53 MB); the
game plays from it on KDE Plasma Wayland with an RX 9070 XT; the bundle
check passes on it and fails one without libdxcompiler.so.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant