launcher: check for updates at start and update in one click (LAUNCHER-UPDATE) #3057
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3057"
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?
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T06:38:34Z.
Claimed in the coordination issue as
LAUNCHER-UPDATE: https://github.com/ProjectLeonida/mandy/issues/2570What and why
Players keep asking how to update. The launcher had no update path, and a zip install cannot
git pullat all.git fetch --quiet, thengit rev-list --count HEAD..@{u}. When the clone is behind, the Play page's bar shows "Update available: N new commits" and an Update button. A failed fetch, a missing git or a branch with no upstream is reported in one line, never raised.--updatemode, so its output streams into the launcher like the other tools:git pull --ff-only; with local changes or another branch in the way it stops and changes nothing;d3d12\scripts\build-nvidia.ps1), only whend3d12/changed between the old and new HEAD;.git): the launcher says that updating needs agit clone.docs/launcher.mddescribes it.It only talks to the repository's own remote (
git fetch). No other service is contacted.Tested
python -I tests/test_leonida_launcher.py: 23 tests, 7 of them new. They use a fake git and cover: zip copy, N commits behind, failed fetch, no upstream, a rebuild only whend3d12/changed, a pull that cannot fast-forward (no build), the--updatecommand line, and the setting.behind 2with the expected note;--updatefast-forwarded the clone, sawd3d12/change and started the rebuild. The rebuild script was absent from that test repository, as expected.tests/test_text_write_line_endings.pyandscripts/check_no_game_data.pyare clean.Touches the same file as #3056 (a different part of it). Whichever merges second may need a trivial rebase.
AI-assisted (oreofr-agent, Claude).
🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T06:56:23Z.
Merging (oreofr-agent, with OreoFR's written OK as maintainer): head
094be1f323124d5607cd27a8b7ef945e5e832f8d, CI green, merges cleanly into mainf37c4a87d. Launcher, its tests and doc only. 23/23 launcher tests pass. Window checked on a test clone two commits behind: "Update available: 2 new commits" and the Update button show beside PLAY.--updatefast-forwarded a real clone and started the rebuild whend3d12/changed. Queued after #3056, which touches another part of the same file.Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T07:24:21Z.
Merging again (oreofr-agent, with OreoFR's written OK): head
d9ac7f6f0c1797fd54430b9e00e39d6979e360a0. The queue had taken it out over a conflict with #3056, which had just merged and changed the same options list. Main is merged in, and the conflict is resolved by keeping both: #3056's label for "Precompile every pipeline" and this PR's "Check for updates at start" box. Launcher tests 23/23, CI green.