feat(install)!: one download per system, which asks to install on first start #273

Closed
HumanBean wants to merge 5 commits from HumanBean/LongshotLauncher:one-download into main
Owner

Why

Players had three files to choose from (a Windows setup, a Windows portable zip, an AppImage) and Linux had no real install. Now there is one download per system, and its first start asks whether to install it or use it from where it is. Packagers (distros, Flatpak, Snap) can also turn the launcher's own updater and the install question off.

What changed

Downloads

  • Windows: LongshotLauncher-<v>-windows-x64.exe. Linux: LongshotLauncher-<v>-linux-x64.AppImage, named for its system as the Windows one is (and as every other release file: windows-x64, linux-x64).

  • The portable zip and the separate setup naming are gone from the README and docs.

  • Old names kept as aliases. Every release still carries -windows-x64-setup.exe (the same program, byte for byte) and -windows-x64-portable.zip (that program alone as LongshotLauncher.exe, with no portable file). The Linux AppImage is also published as -x86_64.AppImage (the same file), the name earlier launchers update from. They are needed because:

    • launchers already out there update from those names;
    • the website's /download/launcher/[<channel>/]windows and windows-portable links (Longshot's website/worker/index.ts, which matches the -windows-x64-setup.exe suffix) find files by them;
    • Tooling's release.py builds the release page header from them.

    So every website link keeps working, and serves the same program. The new launcher reads the new name first and the setup name second, so it can update from releases made before or after this change. Follow-ups to drop the aliases later: the website and release.py should name -windows-x64.exe. I didn't touch either; they're in other repos.

First start (LauncherLayout.FirstStartOf)

  • A copy that isn't installed and has no mark asks "Install Longshot Launcher" or "Use it from here (portable)".
  • Install on Windows: works as the setup did.
  • Install on Linux (new):
    • copies the AppImage to ~/.local/share/LongshotLauncher/LongshotLauncher.AppImage, with its version in a file beside it;
    • adds the longshot-launcher.desktop menu entry and a hicolor icon;
    • adds a desktop shortcut if you tick it.
  • After install: it offers to delete the downloaded file, then starts the installed copy.
  • Portable: creates a Longshot folder beside the program. That folder is the mark and holds all of the launcher's data. A Longshot folder that is really something else doesn't count as the mark: the default builds folder ~/Games/Longshot, %APPDATA%\Longshot, or a builds folder.
  • Installed copies never ask. Running a download again starts the installed launcher if that one is newer, and never downgrades it (Windows reads the registry entry, Linux the version file).
  • Linux uninstall: Settings has a new Uninstall that removes the program, its menu entry, icon and desktop shortcut. A menu entry the user pointed at another AppImage is left alone. Remove everything also uninstalls an installed Linux launcher.

Self-update keeps the kind. An installed launcher updates the installed file. A portable one updates itself in place, from the same one program. The portable-zip update path is removed.

Migration

  • Old Windows portable (a portable file plus LongshotLauncher-data): still portable, data stays where it is. If both marks exist, the old one wins.
  • Old Linux <AppImage>.home: still portable.
  • Old Linux AppImage whose per-user home already has data, with nothing installed: carries on as before, without asking. I picked this as the least surprising: if we asked, "Use it from here" would start it on an empty folder and its builds would vanish from its list. Settings > Applications menu still works for it. If a launcher is installed, the download asks (or starts the newer installed one).

Packaging (README, "Packaging")

  • A launcher counts as packaged if any of these is true:
    • it was built with -p:LongshotPackaged=true (an AssemblyMetadata baked into the binary);
    • it was started with --no-self-update;
    • LONGSHOT_LAUNCHER_NO_SELF_UPDATE=1 is set;
    • it runs in a Flatpak (FLATPAK_ID or /.flatpak-info) or a Snap (SNAP).
  • A packaged launcher:
    • never checks for, downloads or offers launcher updates (including the offer to switch to another channel's launcher);
    • never asks to install, makes no portable folder, and refuses --rollback;
    • keeps its data in the per-user folders.
  • Settings shows "Updates are handled by your package manager." in place of the launcher channel. Picking the channel for game builds still works.
  • Nothing is passed to the builder's play: the builders have no self-updater and no info capabilities, so there's no flag to pass.

AppImage FUSE: the build already uses AppImage's static type2-runtime (20251108, a static-pie with libfuse3 built in), so no libfuse2 is needed. It needs the kernel's FUSE and a fusermount3/fusermount helper. Without them, APPIMAGE_EXTRACT_AND_RUN=1 still works. This is documented in package.sh, the README and docs/releases.md.

Texts: the new texts are in all 12 full catalogs, and the three texts this PR replaces are removed. I also removed 4 stale leftover keys that already made scripts/translations.py fail on main (the old-folder-layout texts and "Details"). The whole test file can't run past that check without this.

Review fixes (self-review)

  • The portable mark is a .portable file inside the Longshot folder: a bare Longshot folder (the player's own, or a builds folder) is asked about, never taken for the mark.
  • "Use it from here" refuses a reserved folder (the default builds folder, Longshot's own folders) and a temporary folder (a program run from inside a zip, whose data would be lost), and checks afterwards that it really became portable.
  • A Linux install leaves installed-once in the launcher's home, so a download started after an uninstall asks again instead of carrying on silently.
  • The installed screen names the folder, not the program file; leftover "Run portable" wording updated.
  • Not changed: Linux Settings > Uninstall leaves game shortcuts and Steam tiles pointing at the old program, as Windows' does.

How it was tested

  • dotnet build App -c Release -maxcpucount:4: 0 warnings, 0 errors.
  • python -I tests/test_launcher_core.py --dotnet …, the whole file unmodified, passes: 2696 checks. New checks (tests/launcher_core/OneDownloadChecks.cs, InstallChecks.cs, Program.cs, test_launcher_core.py):
    • the first-start decision: installed, marked (new folder, old marks), neither, a newer one installed, a Linux home from before;
    • creating the marker, and folders that must not count as one;
    • Linux install and uninstall in a fake home, writing and removing exactly the program, its version file, menu entry, icon and desktop shortcut;
    • self-update keeping the kind (installed Linux, old and new portable Windows);
    • every packaging switch;
    • releases on both sides of the rename;
    • a source test of package.sh's and release.yml's asset list and the AppImage runtime.
  • Headless screenshots of the question on Windows and Linux (new scenes first-start-windows and first-start-linux).
  • Not done: nothing was installed into a real home or started on a real Windows PC. A Windows and a Linux tester should still try Install, Use it from here and Uninstall.

🤖 Generated with Claude Code

## Why Players had three files to choose from (a Windows setup, a Windows portable zip, an AppImage) and Linux had no real install. Now there is **one download per system**, and its first start asks whether to install it or use it from where it is. Packagers (distros, Flatpak, Snap) can also turn the launcher's own updater and the install question off. ## What changed **Downloads** - Windows: `LongshotLauncher-<v>-windows-x64.exe`. Linux: `LongshotLauncher-<v>-linux-x64.AppImage`, named for its system as the Windows one is (and as every other release file: `windows-x64`, `linux-x64`). - The portable zip and the separate setup naming are gone from the README and docs. - **Old names kept as aliases.** Every release still carries `-windows-x64-setup.exe` (the same program, byte for byte) and `-windows-x64-portable.zip` (that program alone as `LongshotLauncher.exe`, with no `portable` file). The Linux AppImage is also published as `-x86_64.AppImage` (the same file), the name earlier launchers update from. They are needed because: - launchers already out there update from those names; - the website's `/download/launcher/[<channel>/]windows` and `windows-portable` links (Longshot's `website/worker/index.ts`, which matches the `-windows-x64-setup.exe` suffix) find files by them; - Tooling's `release.py` builds the release page header from them. So every website link keeps working, and serves the same program. The new launcher reads the new name first and the setup name second, so it can update from releases made before or after this change. Follow-ups to drop the aliases later: the website and `release.py` should name `-windows-x64.exe`. I didn't touch either; they're in other repos. **First start** (`LauncherLayout.FirstStartOf`) - A copy that isn't installed and has no mark asks "Install Longshot Launcher" or "Use it from here (portable)". - **Install on Windows:** works as the setup did. - **Install on Linux (new):** - copies the AppImage to `~/.local/share/LongshotLauncher/LongshotLauncher.AppImage`, with its version in a file beside it; - adds the `longshot-launcher.desktop` menu entry and a hicolor icon; - adds a desktop shortcut if you tick it. - **After install:** it offers to delete the downloaded file, then starts the installed copy. - **Portable:** creates a `Longshot` folder beside the program. That folder is the mark and holds all of the launcher's data. A `Longshot` folder that is really something else doesn't count as the mark: the default builds folder `~/Games/Longshot`, `%APPDATA%\Longshot`, or a builds folder. - **Installed copies** never ask. Running a download again starts the installed launcher if that one is newer, and never downgrades it (Windows reads the registry entry, Linux the version file). - **Linux uninstall:** Settings has a new Uninstall that removes the program, its menu entry, icon and desktop shortcut. A menu entry the user pointed at another AppImage is left alone. Remove everything also uninstalls an installed Linux launcher. **Self-update keeps the kind.** An installed launcher updates the installed file. A portable one updates itself in place, from the same one program. The portable-zip update path is removed. **Migration** - **Old Windows portable** (a `portable` file plus `LongshotLauncher-data`): still portable, data stays where it is. If both marks exist, the old one wins. - **Old Linux `<AppImage>.home`:** still portable. - **Old Linux AppImage whose per-user home already has data, with nothing installed:** carries on as before, without asking. I picked this as the least surprising: if we asked, "Use it from here" would start it on an empty folder and its builds would vanish from its list. Settings > Applications menu still works for it. If a launcher *is* installed, the download asks (or starts the newer installed one). **Packaging** (README, "Packaging") - A launcher counts as packaged if any of these is true: - it was built with `-p:LongshotPackaged=true` (an AssemblyMetadata baked into the binary); - it was started with `--no-self-update`; - `LONGSHOT_LAUNCHER_NO_SELF_UPDATE=1` is set; - it runs in a Flatpak (`FLATPAK_ID` or `/.flatpak-info`) or a Snap (`SNAP`). - A packaged launcher: - never checks for, downloads or offers launcher updates (including the offer to switch to another channel's launcher); - never asks to install, makes no portable folder, and refuses `--rollback`; - keeps its data in the per-user folders. - Settings shows "Updates are handled by your package manager." in place of the launcher channel. Picking the channel for game builds still works. - Nothing is passed to the builder's play: the builders have no self-updater and no `info` capabilities, so there's no flag to pass. **AppImage FUSE:** the build already uses AppImage's static `type2-runtime` (20251108, a static-pie with libfuse3 built in), so no `libfuse2` is needed. It needs the kernel's FUSE and a `fusermount3`/`fusermount` helper. Without them, `APPIMAGE_EXTRACT_AND_RUN=1` still works. This is documented in package.sh, the README and docs/releases.md. **Texts:** the new texts are in all 12 full catalogs, and the three texts this PR replaces are removed. I also removed 4 stale leftover keys that already made `scripts/translations.py` fail on `main` (the old-folder-layout texts and "Details"). The whole test file can't run past that check without this. **Review fixes (self-review)** - The portable mark is a `.portable` file inside the `Longshot` folder: a bare `Longshot` folder (the player's own, or a builds folder) is asked about, never taken for the mark. - "Use it from here" refuses a reserved folder (the default builds folder, Longshot's own folders) and a temporary folder (a program run from inside a zip, whose data would be lost), and checks afterwards that it really became portable. - A Linux install leaves `installed-once` in the launcher's home, so a download started after an uninstall asks again instead of carrying on silently. - The installed screen names the folder, not the program file; leftover "Run portable" wording updated. - Not changed: Linux Settings > Uninstall leaves game shortcuts and Steam tiles pointing at the old program, as Windows' does. ## How it was tested - `dotnet build App -c Release -maxcpucount:4`: 0 warnings, 0 errors. - `python -I tests/test_launcher_core.py --dotnet …`, the whole file unmodified, passes: **2696 checks**. New checks (`tests/launcher_core/OneDownloadChecks.cs`, `InstallChecks.cs`, `Program.cs`, `test_launcher_core.py`): - the first-start decision: installed, marked (new folder, old marks), neither, a newer one installed, a Linux home from before; - creating the marker, and folders that must not count as one; - Linux install and uninstall in a fake home, writing and removing exactly the program, its version file, menu entry, icon and desktop shortcut; - self-update keeping the kind (installed Linux, old and new portable Windows); - every packaging switch; - releases on both sides of the rename; - a source test of package.sh's and release.yml's asset list and the AppImage runtime. - Headless screenshots of the question on Windows and Linux (new scenes `first-start-windows` and `first-start-linux`). - **Not done:** nothing was installed into a real home or started on a real Windows PC. A Windows and a Linux tester should still try Install, Use it from here and Uninstall. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(install)!: one download per system, which asks to install on first start
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 4s
8e48f7c772
One file per system, LongshotLauncher-<v>-windows-x64.exe and -x86_64.AppImage. The
first start of a copy that is neither installed nor marked asks: Install Longshot
Launcher (Windows as the setup did; Linux to ~/.local/share/LongshotLauncher with its
menu entry, hicolor icon and an optional desktop shortcut, then an offer to delete the
download), or Use it from here (portable): a Longshot folder beside the program, the
mark and the data folder. Portable copies from before keep their marks; an AppImage
from before with a home and nothing installed carries on without asking. Linux gets
Settings > Uninstall. Self-update keeps the kind. Releases still carry the setup and
portable zip names of before as aliases, for old launchers and the website.

A packaged launcher (-p:LongshotPackaged=true, --no-self-update,
LONGSHOT_LAUNCHER_NO_SELF_UPDATE=1, Flatpak or Snap) never updates itself nor asks.

BREAKING CHANGE: the Windows download is LongshotLauncher-<v>-windows-x64.exe, and the
portable mark is a Longshot folder beside the program.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member

Possibly related, for context:

  • PR #259 WIP: feat(build)!: Longshot Launcher 2: versions built by longshot-builder, profiles and saves, a clean break from make_game.py releases — Open release overhaul; potential release workflow overlap
Possibly related, for context: - PR #259 WIP: feat(build)!: Longshot Launcher 2: versions built by longshot-builder, profiles and saves, a clean break from make_game.py releases — Open release overhaul; potential release workflow overlap
Author
Owner
@review
BeanBot left a comment

Recommendation: Request changes. A newly portable launcher can lose access to its data when switching to an older launcher, and an unrelated folder can be mistaken for its portable home. The new install and uninstall flows also need real Windows and Linux runs.

The change combines each platform’s downloads, adds Linux installation and package-manager controls, and preserves release aliases. It simplifies the download choice, but adds migration and lifecycle cases that are not yet handled safely.

Blocking (4): must change before merging.

  1. L1 App/LauncherService.cs:262: Switching a newly portable launcher to an older channel can replace it with a launcher that cannot recognize its portable home. (more on the line) Do: Preserve a portable layout understood by the selected older launcher, or prevent switching to an incompatible version with a clear explanation.
  2. L2 Core/LauncherLayout.cs:97: A logs directory or ordinary settings file is accepted as a portable marker even without the new .portable file. (more on the line) Do: Require the explicit .portable marker for the new layout; retain only the separately identified legacy markers for migration.
  3. L3 Core/LauncherLayout.cs:167: The command-line packaging choice is not retained by shortcuts the launcher creates. (more on the line) Do: Ensure generated entry points preserve the packaging choice, for example by requiring and using a package wrapper for shortcut targets or propagating the argument.
  4. L6: It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (for the author)

Should fix (1): not blocking, but worth doing before merging.

  • L4 App/SetupWindows.cs:116: A failure to start the installed launcher is only logged, and the setup window closes. (more on the line) Do: Show the failure in the setup window and allow the player to retry or keep the download.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L5: The new first-start and installation flows have not been exercised on either supported desktop system. When: The fake-home checks and headless screenshots do not exercise starting the installed program, desktop integration, or uninstalling a running installation on Windows and Linux. Do: Run Install, portable use, update and uninstall on real Windows and Linux installations, including an existing portable installation.

@fix can do L1, L2, L3 and L4.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • Where is the matching Longshot change for the shared docs/releases.md and RELEASING.md files required by CONTRIBUTING.md?
More: does it help, other systems, switches, what was read

Does it help: Unproven: the supplied evidence includes core checks and headless screenshots, but no installation or startup on a real Windows PC or Linux home.

Other systems: The change affects existing Windows portable launchers, Linux AppImages, launcher channel changes, shortcuts, package-managed installations and release consumers. Alias compatibility is covered by source checks and fake releases; real platform installation and migration remain untested.

Switches: Adds LongshotPackaged=true, --no-self-update and LONGSHOT_LAUNCHER_NO_SELF_UPDATE; all default off. Flatpak and Snap detection also disable self-update automatically. The command-line switch is lost when generated shortcuts start the executable directly.

Reviewed: af88cfbecf against 4dd60cea24: Read repository rules and the principal startup, layout, installation, update, release and shortcut code and their diffs. Skimmed translations, documentation, release workflow, packaging and test changes; not every changed code file was read in full. No review checklist or pull request template was found at the named paths.; nothing run (a code review).

Checked and fine:

  • The commits include AI co-author trailers.
  • The old release asset names remain in the packaging and publishing paths.
  • No CI failures were supplied for this head.

Testing: No commands from the project, builds or tests were run, as requested. The pull request reports 2,696 checks and headless screenshots.

Overlaps and merge order: Not checked; network access was unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** A newly portable launcher can lose access to its data when switching to an older launcher, and an unrelated folder can be mistaken for its portable home. The new install and uninstall flows also need real Windows and Linux runs. The change combines each platform’s downloads, adds Linux installation and package-manager controls, and preserves release aliases. It simplifies the download choice, but adds migration and lifecycle cases that are not yet handled safely. **Blocking (4)**: must change before merging. 1. **L1** `App/LauncherService.cs:262`: Switching a newly portable launcher to an older channel can replace it with a launcher that cannot recognize its portable home. (more on the line) **Do:** Preserve a portable layout understood by the selected older launcher, or prevent switching to an incompatible version with a clear explanation. 2. **L2** `Core/LauncherLayout.cs:97`: A logs directory or ordinary settings file is accepted as a portable marker even without the new .portable file. (more on the line) **Do:** Require the explicit .portable marker for the new layout; retain only the separately identified legacy markers for migration. 3. **L3** `Core/LauncherLayout.cs:167`: The command-line packaging choice is not retained by shortcuts the launcher creates. (more on the line) **Do:** Ensure generated entry points preserve the packaging choice, for example by requiring and using a package wrapper for shortcut targets or propagating the argument. 4. **L6**: It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). *(for the author)* **Should fix (1)**: not blocking, but worth doing before merging. - **L4** `App/SetupWindows.cs:116`: A failure to start the installed launcher is only logged, and the setup window closes. (more on the line) **Do:** Show the failure in the setup window and allow the player to retry or keep the download. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L5**: The new first-start and installation flows have not been exercised on either supported desktop system. *When:* The fake-home checks and headless screenshots do not exercise starting the installed program, desktop integration, or uninstalling a running installation on Windows and Linux. **Do:** Run Install, portable use, update and uninstall on real Windows and Linux installations, including an existing portable installation. `@fix` can do L1, L2, L3 and L4. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - Where is the matching Longshot change for the shared docs/releases.md and RELEASING.md files required by CONTRIBUTING.md? <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the supplied evidence includes core checks and headless screenshots, but no installation or startup on a real Windows PC or Linux home. **Other systems:** The change affects existing Windows portable launchers, Linux AppImages, launcher channel changes, shortcuts, package-managed installations and release consumers. Alias compatibility is covered by source checks and fake releases; real platform installation and migration remain untested. **Switches:** Adds LongshotPackaged=true, --no-self-update and LONGSHOT_LAUNCHER_NO_SELF_UPDATE; all default off. Flatpak and Snap detection also disable self-update automatically. The command-line switch is lost when generated shortcuts start the executable directly. **Reviewed:** af88cfbecfbd against 4dd60cea249f: Read repository rules and the principal startup, layout, installation, update, release and shortcut code and their diffs. Skimmed translations, documentation, release workflow, packaging and test changes; not every changed code file was read in full. No review checklist or pull request template was found at the named paths.; nothing run (a code review). **Checked and fine:** - The commits include AI co-author trailers. - The old release asset names remain in the packaging and publishing paths. - No CI failures were supplied for this head. **Testing:** No commands from the project, builds or tests were run, as requested. The pull request reports 2,696 checks and headless screenshots. **Overlaps and merge order:** Not checked; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -258,3 +259,4 @@
if (!layout.UpdatesItself) throw new InvalidOperationException("This launcher's package manager updates it.");
var current = layout.File
?? throw new InvalidOperationException("This launcher was not started from its own file, so it cannot replace itself.");
var file = release.Launcher.TryGetValue(layout.UpdateKey, out var f) ? f
Member

L1 (blocking): Switching a newly portable launcher to an older channel can replace it with a launcher that cannot recognize its portable home.

When: A player chooses portable with this version and then selects a channel whose newest release predates this change. The older Windows launcher looks for the old portable marker and data folder, while the older Linux launcher looks for an AppImage.home folder, so the existing Longshot folder and its builds are no longer used.

Do: Preserve a portable layout understood by the selected older launcher, or prevent switching to an incompatible version with a clear explanation.

**L1** (blocking): Switching a newly portable launcher to an older channel can replace it with a launcher that cannot recognize its portable home. *When:* A player chooses portable with this version and then selects a channel whose newest release predates this change. The older Windows launcher looks for the old portable marker and data folder, while the older Linux launcher looks for an AppImage.home folder, so the existing Longshot folder and its builds are no longer used. **Do:** Preserve a portable layout understood by the selected older launcher, or prevent switching to an incompatible version with a clear explanation.
@ -96,0 +113,4 @@
Program.Layout.File ?? "")));
void Start(bool delete)
{
try { Program.StartInstalled(installed, delete); }
Member

L4 (should fix): A failure to start the installed launcher is only logged, and the setup window closes.

When: If starting the installed file fails after installation, either button closes the window without telling the player why; no launcher window opens.

Do: Show the failure in the setup window and allow the player to retry or keep the download.

**L4** (should fix): A failure to start the installed launcher is only logged, and the setup window closes. *When:* If starting the installed file fails after installation, either button closes the window without telling the player why; no launcher window opens. **Do:** Show the failure in the setup window and allow the player to retry or keep the download.
@ -57,0 +94,4 @@
if (IsReserved(folder, platform, getenv)) return false;
// (a mark of its own, or the launcher's data: never any folder that happens to be called Longshot, a builds folder or
// one of the player's)
return System.IO.File.Exists(Path.Combine(folder, PortableMark)) || HasData(folder) || Directory.Exists(Path.Combine(folder, "logs"));
Member

L2 (blocking): A logs directory or ordinary settings file is accepted as a portable marker even without the new .portable file.

When: A download sits beside an unrelated Longshot folder containing a logs directory. It is classified as portable without asking and uses that folder as its data home, where launcher files can be written into the unrelated folder.

Do: Require the explicit .portable marker for the new layout; retain only the separately identified legacy markers for migration.

**L2** (blocking): A logs directory or ordinary settings file is accepted as a portable marker even without the new .portable file. *When:* A download sits beside an unrelated Longshot folder containing a logs directory. It is classified as portable without asking and uses that folder as its data home, where launcher files can be written into the unrelated folder. **Do:** Require the explicit .portable marker for the new layout; retain only the separately identified legacy markers for migration.
@ -57,0 +164,4 @@
{
getenv ??= Environment.GetEnvironmentVariable;
exists ??= System.IO.File.Exists;
if (Built(assembly)) return "build";
Member

L3 (blocking): The command-line packaging choice is not retained by shortcuts the launcher creates.

When: A package starts the launcher with --no-self-update and the player creates a game shortcut. The shortcut starts LauncherPath directly without that argument, so the next window is classified as unpackaged and can offer or perform self-update.

Do: Ensure generated entry points preserve the packaging choice, for example by requiring and using a package wrapper for shortcut targets or propagating the argument.

**L3** (blocking): The command-line packaging choice is not retained by shortcuts the launcher creates. *When:* A package starts the launcher with --no-self-update and the player creates a game shortcut. The shortcut starts LauncherPath directly without that argument, so the next window is classified as unpackaged and can offer or perform self-update. **Do:** Ensure generated entry points preserve the packaging choice, for example by requiring and using a package wrapper for shortcut targets or propagating the argument.
HumanBean force-pushed one-download from af88cfbecf
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 6s
to b08d0ced01
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 4s
2026-11-25 05:17:11 +00:00
Compare
Author
Owner

Thanks for the review. Pushed at b08d0ced, now on main (with #276 underneath, which fixes main's compile: merge that first).

  • L1, switching a portable launcher to an older channel: fixed. A launcher that's portable in its Longshot folder is no longer offered a launcher release from before one download per system. Those releases are the ones that carry only the old asset names. The reason is logged. Portable launchers with the old marks, and installed launchers, are unaffected.
  • L2, a logs folder or settings file taken as the mark: fixed, you're right. Only the .portable file marks the new layout now. The old marks (Windows' portable file with LongshotLauncher-data, Linux's <AppImage>.home) are still read separately, so existing portable launchers keep working. "Use it from here" refuses an unmarked Longshot folder that's something else.
  • L3, the packaging choice lost by the shortcuts: fixed. When --no-self-update or LONGSHOT_LAUNCHER_NO_SELF_UPDATE made the launcher packaged, the shortcuts, menu entries and Steam tile it creates pass --no-self-update. The build flag, Flatpak and Snap don't need it. Not covered: the game folder's builder= stamp is a bare path; a packager using the argument should use the build flag or a wrapper.
  • L4, an installed launcher that fails to start: fixed. The failure is shown in the setup window, which stays open so Keep it / Delete it can try again.
  • L5, real runs: agreed. Install, portable, update and uninstall still need real Windows and Linux runs, including an existing portable install, before this leaves WIP.
  • L6, conflicts: rebased onto main. #151's symlink resolution is kept: a symlinked AppImage is resolved to its target before its portable marks and install state are read.
  • The matching Longshot docs: there's no Longshot PR yet. Longshot's website/worker/index.ts and Tooling's release.py still name the old files, which every release keeps publishing, so nothing breaks. Switching them to the new names is a follow-up once this merges.

Checks: tests/test_launcher_core.py --strict --longshot <Longshot main>: 2812 passed.

Thanks for the review. Pushed at `b08d0ced`, now on `main` (with [#276](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/276) underneath, which fixes `main`'s compile: merge that first). - **L1, switching a portable launcher to an older channel:** fixed. A launcher that's portable in its `Longshot` folder is no longer offered a launcher release from before one download per system. Those releases are the ones that carry only the old asset names. The reason is logged. Portable launchers with the old marks, and installed launchers, are unaffected. - **L2, a logs folder or settings file taken as the mark:** fixed, you're right. Only the `.portable` file marks the new layout now. The old marks (Windows' `portable` file with `LongshotLauncher-data`, Linux's `<AppImage>.home`) are still read separately, so existing portable launchers keep working. "Use it from here" refuses an unmarked `Longshot` folder that's something else. - **L3, the packaging choice lost by the shortcuts:** fixed. When `--no-self-update` or `LONGSHOT_LAUNCHER_NO_SELF_UPDATE` made the launcher packaged, the shortcuts, menu entries and Steam tile it creates pass `--no-self-update`. The build flag, Flatpak and Snap don't need it. Not covered: the game folder's `builder=` stamp is a bare path; a packager using the argument should use the build flag or a wrapper. - **L4, an installed launcher that fails to start:** fixed. The failure is shown in the setup window, which stays open so Keep it / Delete it can try again. - **L5, real runs:** agreed. Install, portable, update and uninstall still need real Windows and Linux runs, including an existing portable install, before this leaves WIP. - **L6, conflicts:** rebased onto `main`. #151's symlink resolution is kept: a symlinked AppImage is resolved to its target before its portable marks and install state are read. - **The matching Longshot docs:** there's no Longshot PR yet. Longshot's `website/worker/index.ts` and Tooling's `release.py` still name the old files, which every release keeps publishing, so nothing breaks. Switching them to the new names is a follow-up once this merges. Checks: `tests/test_launcher_core.py --strict --longshot <Longshot main>`: 2812 passed.
HumanBean changed title from WIP: feat(install)!: one download per system, which asks to install on first start to feat(install)!: one download per system, which asks to install on first start 2026-11-25 05:24:15 +00:00
HumanBean force-pushed one-download from b08d0ced01
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 4s
to 2049720b53
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 4s
2026-11-25 05:26:26 +00:00
Compare
Author
Owner

@review

At 2049720b: L1–L4 fixed (see the comment above), rebased on main after #272 and #276.

@review At `2049720b`: L1–L4 fixed (see the comment above), rebased on `main` after #272 and #276.
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The reported code issues are addressed, but the new installation and portable flows still need real Windows and Linux runs before merge. Recommend approval; not approved on the forge.

The launcher offers installation or portable use from one download per system, adds Linux installation, and lets packages disable self-update. The change simplifies the download choice but adds platform-specific installation and migration paths.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L5: The new first-start and installation flows have not been exercised on either supported desktop system. When: The fake-home checks and headless screenshots do not exercise starting the installed program, desktop integration, or uninstalling a running installation on Windows and Linux. Do: Run Install, portable use, update and uninstall on real Windows and Linux installations, including an existing portable installation.

Since the last review (on af88cfbecf)
Resolved: L1 (Switching a newly portable launcher to an older channel can replace it with a launcher tha…); L2 (A logs directory or ordinary settings file is accepted as a portable marker even without t…); L3 (The command-line packaging choice is not retained by shortcuts the launcher creates.); L4 (A failure to start the installed launcher is only logged, and the setup window closes.); L6 (It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first).)
Still open: L5 (The new first-start and installation flows have not been exercised on either supported des…)

Also noticed (1; not asked for, not blocking)
  • The shared release documentation also needs its corresponding Longshot change.
More: does it help, other systems, switches, what was read

Does it help: Unproven: the author reports 2,812 automated checks passing, but no real Windows or Linux installation runs are reported.

Other systems: Windows and Linux installation, portable migration, self-update, desktop shortcuts and Steam tiles are affected. Release aliases preserve the existing website and Tooling download names; real-system behavior remains to be checked.

Switches: LongshotPackaged defaults to false; --no-self-update and LONGSHOT_LAUNCHER_NO_SELF_UPDATE opt into package-managed updates. Flatpak and Snap are detected automatically. The defaults fit the stated packaging behavior.

Reviewed: 2049720b53 against 3af691ed6d: Read AGENTS.md, CONTRIBUTING.md, Core/LauncherLayout.cs, App/SetupWindows.cs and App/WindowsShortcuts.cs in full; inspected the relevant diffs, callers and tests. Other changed files, translations and generated assets were not read in full.; nothing run (a code review).

Checked and fine:

  • Old portable markers retain precedence over the new marker.
  • The new portable update guard is applied before an update is offered.
  • The reported head has no failing or running CI checks.

Testing: No commands that execute project code were run. The author reports 2,812 checks passed; real desktop runs remain outstanding.

Overlaps and merge order: #272 and #276 are included in the current base; the corresponding Longshot release-documentation change is still needed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The reported code issues are addressed, but the new installation and portable flows still need real Windows and Linux runs before merge. Recommend approval; not approved on the forge. The launcher offers installation or portable use from one download per system, adds Linux installation, and lets packages disable self-update. The change simplifies the download choice but adds platform-specific installation and migration paths. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L5**: The new first-start and installation flows have not been exercised on either supported desktop system. *When:* The fake-home checks and headless screenshots do not exercise starting the installed program, desktop integration, or uninstalling a running installation on Windows and Linux. **Do:** Run Install, portable use, update and uninstall on real Windows and Linux installations, including an existing portable installation. **Since the last review** (on af88cfbecfbd) Resolved: L1 (Switching a newly portable launcher to an older channel can replace it with a launcher tha…); L2 (A logs directory or ordinary settings file is accepted as a portable marker even without t…); L3 (The command-line packaging choice is not retained by shortcuts the launcher creates.); L4 (A failure to start the installed launcher is only logged, and the setup window closes.); L6 (It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first).) Still open: L5 (The new first-start and installation flows have not been exercised on either supported des…) <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The shared release documentation also needs its corresponding Longshot change. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the author reports 2,812 automated checks passing, but no real Windows or Linux installation runs are reported. **Other systems:** Windows and Linux installation, portable migration, self-update, desktop shortcuts and Steam tiles are affected. Release aliases preserve the existing website and Tooling download names; real-system behavior remains to be checked. **Switches:** LongshotPackaged defaults to false; --no-self-update and LONGSHOT_LAUNCHER_NO_SELF_UPDATE opt into package-managed updates. Flatpak and Snap are detected automatically. The defaults fit the stated packaging behavior. **Reviewed:** 2049720b5319 against 3af691ed6dee: Read AGENTS.md, CONTRIBUTING.md, Core/LauncherLayout.cs, App/SetupWindows.cs and App/WindowsShortcuts.cs in full; inspected the relevant diffs, callers and tests. Other changed files, translations and generated assets were not read in full.; nothing run (a code review). **Checked and fine:** - Old portable markers retain precedence over the new marker. - The new portable update guard is applied before an update is offered. - The reported head has no failing or running CI checks. **Testing:** No commands that execute project code were run. The author reports 2,812 checks passed; real desktop runs remain outstanding. **Overlaps and merge order:** #272 and #276 are included in the current base; the corresponding Longshot release-documentation change is still needed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
HumanBean closed this pull request 2026-11-27 03:56:52 +00:00
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 4s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
MagicBeanDev/LongshotLauncher!273
No description provided.