fix(versions): the nightly launcher's versions in builds.json are not listed here, and kept as they are #289

Merged
HumanBean merged 1 commit from HumanBean/LongshotLauncher:fix/stable-hides-nightly-versions into release/v1.3 2026-11-26 07:08:04 +00:00
Owner

The stable launcher (v1.3.0) listed the nightly launcher's longshot-builder versions as installed, with Play, because both launchers keep their versions in the same builds.json; and every time it saved that list it dropped the fields it doesn't know (nupInPlace), damaging the nightly's rows. This is the fix for a v1.3.1 cut from this branch (release/v1.3, from v1.3.0); the nightly gets its own list in #288.

What changed

  • The nightly's rows are not listed here (BuildRegistry.NightlyRow): a row marked nupInPlace, a folder in the nightly's version folders (<home>/versions), or a game folder holding longshot-builder's build record (longshot_build.json, and its earlier names). Only this launcher's versions show, and this list's default is its own.
  • They are kept as they are: set aside from the file's own JSON when it is read, written back whole after this launcher's rows on every save (fields unknown here included), never marked as the default.
  • Never touched from here: their folders count as listed, so they are never offered as leftovers, taken for a lost update, listed again or deleted with another version; Relist also skips any game folder with longshot-builder's record; their versions' tools are not pruned.
  • No new texts.

Tests

  • tests/launcher_core/NightlyRowChecks.cs (new): only the stable row is listed (version folder, record, nupInPlace rows hidden), the default is this list's; after a change and a save the nightly's rows come back with nupInPlace and an unknown field kept and default false; loaded again, the same split; Relist takes make_game.py's game back, never longshot-builder's.
  • python -I tests/test_launcher_core.py: 2805 checks passed. LAUNCHER=$PWD python -I ../Tooling/tests/test_release.py: OK.
  • Not run against a real data folder or in the game. Nothing changes on screen except the nightly's versions no longer being listed.

🤖 Generated with Claude Code

The stable launcher (v1.3.0) listed the nightly launcher's longshot-builder versions as installed, with Play, because both launchers keep their versions in the same `builds.json`; and every time it saved that list it dropped the fields it doesn't know (`nupInPlace`), damaging the nightly's rows. This is the fix for a v1.3.1 cut from this branch (`release/v1.3`, from v1.3.0); the nightly gets its own list in #288. ## What changed - **The nightly's rows are not listed here** (`BuildRegistry.NightlyRow`): a row marked `nupInPlace`, a folder in the nightly's version folders (`<home>/versions`), or a game folder holding longshot-builder's build record (`longshot_build.json`, and its earlier names). Only this launcher's versions show, and this list's default is its own. - **They are kept as they are**: set aside from the file's own JSON when it is read, written back whole after this launcher's rows on every save (fields unknown here included), never marked as the default. - **Never touched from here**: their folders count as listed, so they are never offered as leftovers, taken for a lost update, listed again or deleted with another version; `Relist` also skips any game folder with longshot-builder's record; their versions' tools are not pruned. - No new texts. ## Tests - `tests/launcher_core/NightlyRowChecks.cs` (new): only the stable row is listed (version folder, record, `nupInPlace` rows hidden), the default is this list's; after a change and a save the nightly's rows come back with `nupInPlace` and an unknown field kept and `default` false; loaded again, the same split; `Relist` takes make_game.py's game back, never longshot-builder's. - `python -I tests/test_launcher_core.py`: 2805 checks passed. `LAUNCHER=$PWD python -I ../Tooling/tests/test_release.py`: OK. - Not run against a real data folder or in the game. Nothing changes on screen except the nightly's versions no longer being listed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(versions): the nightly launcher's versions in builds.json are not listed here, and kept as they are
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 10s
f67296c195
Both launchers kept their versions in the same builds.json, so this launcher listed the nightly's longshot-builder versions
as installed, with Play, and dropped the fields it does not know (nupInPlace) whenever it saved the list. Their rows (in the
nightly's version folders, marked nupInPlace, or with longshot-builder's build record) are now set aside when the list is
read and written back whole on every save; their folders are never offered as leftovers, listed again or deleted with
another version, and their tools are not pruned.

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

Possibly related, for context:

  • PR #272 feat(versions): a version built with longshot-builder needs the nightly launcher — Merged support identifies longshot-builder versions that this PR isolates.
  • PR #191 fix(home): games whose row went are listed again once, not at every start — Merged relisting/leftovers logic this change extends to protect nightly folders.
Possibly related, for context: - PR #272 feat(versions): a version built with longshot-builder needs the nightly launcher — Merged support identifies longshot-builder versions that this PR isolates. - PR #191 fix(home): games whose row went are listed again once, not at every start — Merged relisting/leftovers logic this change extends to protect nightly folders.
HumanBean merged commit 3e3e1af3bd into release/v1.3 2026-11-26 07:08:04 +00:00
HumanBean deleted branch fix/stable-hides-nightly-versions 2026-11-26 07:08:05 +00:00
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!289
No description provided.