feat(versions): one list of installed versions per launcher, and a version to add is never an empty list #288
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!288
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:feat/add-version-after-clean-break"
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?
Both launchers kept their installed versions in the same
builds.json, so the stable launcher (v1.3.0) listed the nightly's longshot-builder versions as installed, with Play. Players moving to the nightly also had to add a version again, but Add a version opened on an empty, disabled Stable list with nothing saying why. This gives each launcher its own list and makes adding a version obvious.One list of installed versions per launcher
versions.json.builds.jsonis the stable launcher's alone (Core/VersionLists.cs).versions.json: the rows known to be longshot-builder's (in a version folder, markedNupInPlace, or holding its record) move; the others stay, a row whose folder is gone included.versions.jsonis written first, so a stop between the two saves leaves a row in both lists, never in neither. An unreadablebuilds.jsonis left as it is.Relist), taken for a lost update or deleted with another version. Its versions' tools and make_game.py's files are not pruned while it lists any.versions.json(and its rows still inbuilds.jsonfrom before the split).Adding a version after the clean break
scripts/translations.py: all complete).Tests
tests/launcher_core/VersionListChecks.cs(new): what moves and what stays (ids, folders, marks, the default, a gone folder), the split runs once (even with a row put back), nothing written with nobuilds.json,builds.jsonbyte-identical with none of ours, an unreadable one left as it is; in the source, the split before the list loads and the stable launcher's folders in every keep list.OtherLauncherCheckswrites the other launcher's list asversions.json;OldVersionChecksnow also requires the stable launcher's list to hold back the pruning.tests/launcher_app:AfterTheCleanBreak— Add a version on Nightly / empty Stable / Pick Nightly / an asked channel kept / waiting for the server / an old stable not listed; the home card from this list's old versions and from the stable launcher's list, and Not now.python -I tests/test_launcher_core.py: 2854 checks passed.LAUNCHER=$PWD python -I ../Tooling/tests/test_release.py: OK.🤖 Generated with Claude Code
Screenshots (tools/screenshots): Home with only old-builder versions, and Add a version on Stable before longshot-builder's first stable.
Possibly related, for context:
feat(versions): after the clean break, a version to add is never an empty listto feat(versions): one list of installed versions per launcher, and a version to add is never an empty list