feat: the Flatpak is the Longshot Launcher, the same program as its AppImage #2
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/launcher"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The Flatpak held Longshot's builder AppImage. Since Longshot dropped the builder UIs, that AppImage has no window, so
flatpak run dev.magicbean.Longshotonly prints "get the Longshot Launcher". Players use the Longshot Launcher's AppImage, so the Flatpak should be that same program, without the AppImage around it.What changed
dev.magicbean.Longshot.yml: installs the launcher's own program,usr/bin/LongshotLauncher, in/app/bin.--self-check.scripts/pick_release.py,config.env: the LongshotLauncher releases (signed with the same key:release_keys.jsonunchanged apart from its comment).longshot-flatpak.sh: starts the launcher the way the AppImage'sAppRundoes, with three differences in the environment:XDG_DATA_HOME=~/.local/share. The launcher's home, the game's saves and the shortcuts are where the AppImage puts them, so the AppImage and the Flatpak share them.LONGSHOT_LAUNCHER_EXEis a start script, the same path inside and outside the sandbox, forbuilder=and the shortcuts.APPIMAGE, so Flatpak handles the launcher's updates.--share=network): the launcher's release checks, downloading Longshot's builder and its tools, crash reports.bin/LongshotLauncher.Testing
pick_release.pyagainst the launcher's releases: v1.0.0-rc.3,SHA256SUMS.sigverified with the pinned key.flatpak-builder(not installed here), I tested the same files under org.freedesktop.Platform 26.08 (flatpak build-init+flatpak build):--self-checkanswersLongshotLauncher v1.0.0-rc.3;longshot-flatpak.shputs the home in~/.local/share/longshot/launcherand writes the start scripts.flatpak-builderbuild.Depends on
LONGSHOT_LAUNCHER_EXE, and no self-update offer when the launcher isn't started from its own file (branchgab9281/LongshotLauncher:feat/flatpak-path)./app/bin/LongshotLauncherand only work inside the sandbox. Play inside the launcher works.🤖 Generated with Claude Code
https://claude.ai/code/session_015KgSKoUqUvce5UXG89NBgi