fix(launcher): preserve update settings and clean up cancelled builds #331

Merged
HumanBean merged 1 commit from HumanBean/LongshotLauncher:fix/build-version-lifecycle into main 2026-11-28 04:25:00 +00:00
Owner

Two update attempts completed the builder run but failed during launcher registration. The in-place upgrade scan rejects the generated layout's normal config/settings.ini before the code that preserves those settings can run.

  • Recognize the runtime settings file only in an organized build's config directory. Carry the player's settings through the upgrade and include the relative path when unrelated files trigger protection.
  • Discard fresh, unregistered build folders when a builder download, file check, or game build is cancelled. Registered installations, sources, and protected data remain intact. A retry starts with a fresh destination.
  • Show a complete rollback build even when its staging slot retains the installation marker used by cleanup. Preserve the registered identity of a verifiable copy found in the configured library without granting ownership.

Testing

  • 228 launcher tests passed serially with one network package test ignored. The fixtures cover settings preservation, protected files, cancellation cleanup, and version discovery.
  • Formatting, locked Clippy, and 46 Tooling release tests passed.
  • The Linux launcher showed three rows in the split-library fixture, two registered nightly 860 copies and a completed nightly 857 rollback. The attached screenshot uses synthetic files.
  • The Windows update attempts from the report need a retest on the patched launcher. The change runs in launcher registration and discovery after builder output, so the game build itself is unchanged.
Two update attempts completed the builder run but failed during launcher registration. The in-place upgrade scan rejects the generated layout's normal config/settings.ini before the code that preserves those settings can run. - Recognize the runtime settings file only in an organized build's config directory. Carry the player's settings through the upgrade and include the relative path when unrelated files trigger protection. - Discard fresh, unregistered build folders when a builder download, file check, or game build is cancelled. Registered installations, sources, and protected data remain intact. A retry starts with a fresh destination. - Show a complete rollback build even when its staging slot retains the installation marker used by cleanup. Preserve the registered identity of a verifiable copy found in the configured library without granting ownership. ## Testing - 228 launcher tests passed serially with one network package test ignored. The fixtures cover settings preservation, protected files, cancellation cleanup, and version discovery. - Formatting, locked Clippy, and 46 Tooling release tests passed. - The Linux launcher showed three rows in the split-library fixture, two registered nightly 860 copies and a completed nightly 857 rollback. The attached screenshot uses synthetic files. - The Windows update attempts from the report need a retest on the patched launcher. The change runs in launcher registration and discovery after builder output, so the game build itself is unchanged.
fix(launcher): preserve update settings and clean up cancelled builds
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
PR title / Conventional Commit title (pull_request) Successful in 8s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 14s
CI / Rust formatting, lint and tests (pull_request) Successful in 12m0s
CI / Release packages and stable upgrades (pull_request) Failing after 1h0m2s
f06dc6d28a
Author
Owner

The synthetic Linux fixture shows both nightly 860 copies and the completed nightly 857 rollback build. Versions list with all three completed builds

The synthetic Linux fixture shows both nightly 860 copies and the completed nightly 857 rollback build. ![Versions list with all three completed builds](https://git.magicbean.dev/attachments/638d607d-9a4b-4687-907e-526e1681b9f5)
Member

Possibly related, for context:

  • issue #329 Launcher: Nightly update build completes but registration is refused because destination folder is non-empty — Directly reports the update registration rejection this fixes.
  • PR #321 fix(launcher): refresh local installations and keep upgrades connected — Merged upgrade and discovery behavior this extends; includes settings transfer and recovery.
  • PR #327 fix(launcher): explain protected installs and scrub build logs — Merged protected-destination safeguards in the same update flow; adjacent collision handling.
Possibly related, for context: - issue #329 Launcher: Nightly update build completes but registration is refused because destination folder is non-empty — Directly reports the update registration rejection this fixes. - PR #321 fix(launcher): refresh local installations and keep upgrades connected — Merged upgrade and discovery behavior this extends; includes settings transfer and recovery. - PR #327 fix(launcher): explain protected installs and scrub build logs — Merged protected-destination safeguards in the same update flow; adjacent collision handling.
HumanBean deleted branch fix/build-version-lifecycle 2026-11-28 04:25:00 +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!331
No description provided.