WIP: feat(versions): a version built with longshot-builder needs the nightly launcher #272

Draft
HumanBean wants to merge 4 commits from HumanBean/LongshotLauncher:feat/stable-guard-new-builder into main
Owner

Longshot's nightlies will soon ship the new Rust builder (longshot-builder) instead of make_game.py. A stable launcher only knows the old builds, so it must refuse those versions cleanly and point the player to the nightly launcher. This must ship in a stable launcher release before Longshot #2286 merges.

What changed

  • Detection (only the detection is ported from #259): a game release is built with the new builder when its signed SHA256SUMS lists longshot-builder-<tag>-<platform>.json for the player's system (ReleaseInfo.HasNewBuilder, from BuilderManifests). The Version list marks such versions from the release list's asset names.
  • Refusal: such a version is shown but marked "Needs the nightly launcher". Picking, building or updating to it is refused with "This version of Longshot is built with the new builder, which this launcher doesn't support. Switch the Longshot Launcher to its nightly channel to play it." ToolsSource refuses it as well, before any download.
  • The way out: the message has a button, "Switch to nightly and update". It sets the launcher's own update channel to nightly, saves it, runs the update check and starts the launcher's existing self-update.
  • Update check: versions built with the new builder are skipped, so a channel's newest is the newest version this launcher can build. If a channel has only such versions, nothing is offered.
  • Old versions (make_game.py) work exactly as before.
  • New texts are in all 12 catalogs. Three commits: the feature, the catalog fix, the screenshot scenes.

How it was tested

  • New tests/launcher_core/NewBuilderChecks.cs: detection (signed manifest, other system, release list names), the refusal (message, nothing downloaded, old builds still install), the update check (skips; none when only new-builder versions), the Version list marks, and the channel switch (setting, saved, the launcher's own update then finds the nightly).
  • The App builds. The stock python -I tests/test_launcher_core.py --dotnet ... passes unmodified (core: 2685 checks). A second commit removes four texts left over in the 12 catalogs ("Details" and the old-folder-layout ones, unused in the code), which made its translations check fail on main.
  • Headless screenshots (tools/screenshots, new scenes needs-nightly-launcher and home-versions-needs-nightly) show the dialog and the Version list's mark. Not run in the game.

🤖 Generated with Claude Code

Longshot's nightlies will soon ship the new Rust builder (`longshot-builder`) instead of `make_game.py`. A stable launcher only knows the old builds, so it must refuse those versions cleanly and point the player to the nightly launcher. **This must ship in a stable launcher release before Longshot #2286 merges.** ## What changed - **Detection** (only the detection is ported from #259): a game release is built with the new builder when its signed `SHA256SUMS` lists `longshot-builder-<tag>-<platform>.json` for the player's system (`ReleaseInfo.HasNewBuilder`, from `BuilderManifests`). The Version list marks such versions from the release list's asset names. - **Refusal**: such a version is shown but marked "Needs the nightly launcher". Picking, building or updating to it is refused with "This version of Longshot is built with the new builder, which this launcher doesn't support. Switch the Longshot Launcher to its nightly channel to play it." `ToolsSource` refuses it as well, before any download. - **The way out**: the message has a button, "Switch to nightly and update". It sets the launcher's own update channel to nightly, saves it, runs the update check and starts the launcher's existing self-update. - **Update check**: versions built with the new builder are skipped, so a channel's newest is the newest version this launcher can build. If a channel has only such versions, nothing is offered. - **Old versions** (`make_game.py`) work exactly as before. - New texts are in all 12 catalogs. Three commits: the feature, the catalog fix, the screenshot scenes. ## How it was tested - New `tests/launcher_core/NewBuilderChecks.cs`: detection (signed manifest, other system, release list names), the refusal (message, nothing downloaded, old builds still install), the update check (skips; none when only new-builder versions), the Version list marks, and the channel switch (setting, saved, the launcher's own update then finds the nightly). - The App builds. The stock `python -I tests/test_launcher_core.py --dotnet ...` passes unmodified (core: 2685 checks). A second commit removes four texts left over in the 12 catalogs ("Details" and the old-folder-layout ones, unused in the code), which made its translations check fail on `main`. - Headless screenshots (tools/screenshots, new scenes `needs-nightly-launcher` and `home-versions-needs-nightly`) show the dialog and the Version list's mark. Not run in the game. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(versions): a version built with longshot-builder needs the nightly launcher
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 5s
64ab66d829
Longshot's nightlies will soon ship the new Rust builder (longshot-builder) instead of make_game.py. This launcher only knows the old
builds, so it now refuses those versions and points to the nightly launcher.

- Detection: a release is built with the new builder when its signed SHA256SUMS lists longshot-builder-<tag>-<platform>.json for the
  system (ReleaseInfo.HasNewBuilder); the Version list marks them from the release list's asset names.
- Such a version is marked "Needs the nightly launcher"; picking, building or updating to it is refused with a message and a
  button that sets the launcher's own update channel to nightly and starts its self-update. ToolsSource refuses it too, before any download.
- An update check skips these versions: a channel's newest is the newest one this launcher can build, or none.
- Versions built with make_game.py work as before. New texts are in the 12 catalogs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1SkKpc592GgxftLP8o
'Details' and the old-folder-layout texts were left over in the 12 catalogs, which failed the translations check of tests/test_launcher_core.py on main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1SkKpc592GgxftLP8o
test(screenshots): scenes for the nightly-launcher dialog and the Version list's mark
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 9s
4588016ae4
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1SkKpc592GgxftLP8o
fix(versions): the collapsed Version field keeps the version's full name
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 14s
31469d76ac
The note "Needs the nightly launcher" squeezed it to "Nightly ..."; the list and the dialog say it, so the field does not.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1SkKpc592GgxftLP8o
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 14s
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'feat/stable-guard-new-builder:HumanBean-feat/stable-guard-new-builder'
git switch 'HumanBean-feat/stable-guard-new-builder'
Sign in to join this conversation.
No reviewers
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
MagicBeanDev/LongshotLauncher!272
No description provided.