launcher: main/beta branch menu in the status corner #3414
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!3414
Loading…
Reference in a new issue
No description provided.
Delete branch "oreofr/launcher-branch-dropdown"
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?
Pull request successfully merged and closed
What
A main / beta menu at the top of the launcher's bottom-left status corner, dark like the Settings page's dropdowns (the same read-only
ttk.Comboboxstyle).BETA.md) lives in its own folder beside the main copy:<main copy>-beta(%LOCALAPPDATA%\Mandy\repo-betafor the installed app; settingbeta_dir). The first time beta is picked, the launcher's dark dialog asks once (less stable, a second copy about the size of this one is downloaded, main and the saves are not touched, report with Copy my info, back to main here any time), then runsgit clone --branch betawith its output in the Output panel, copies the F1 menu's settings andgame_path.txtinto the new copy, saveschannel: betaand restarts on it.betain the beta copy): the existing flow, so local-changes refusal, thebackup/before-update-*branch on a rewritten history and restart-on-launcher-update all work as before.beta <commit>. Settings > Mandy repository says the beta copy is in use and where.Branch: ...), and on beta addChannel: betaandBETA.md'sBuilt on ...line (the bug report keeps its allowlist: a branch name or the build line that does not match goes throughsafe_text).mainagain through the normal Update Mandy. The list is fixed (main, beta, plus that custom one): no network call.Data, caches, saves
-Data <data folder>-beta(%LOCALAPPDATA%\Leonida\d3d12-beta), so beta'scache-2(translated shaders, pipelines) never mixes with main's. Clear shader cache clears the cache of the copy in use.LEONIDA_DATA_DIRto main's<data>\data(where the saves are,data/7952987A/saves), unless Advanced already names one. The Saves page shows the same saves on both.play-d3d12.ps1builds it at the first PLAY when missing). Linux keeps its XDG folders shared (no change there).Why
OreoFR wants a clean main/beta choice in the status corner for the new
betabranch on git.leonida.now, with two folders so going back to main is instant and main's copy is never rewritten by beta's history.Tests
python -I tests/test_leonida_launcher.py: 250 tests OK (newBranchMenuTests: menu value and choices incl. a custom branch, plan per choice (confirmation only for beta, settings written are the ones Settings reads), choosing runs the existing update/restart/clone paths (mocked), first beta =git clone --branch betainto the beta folder (seed copies without overwriting), back to main leaves the beta folder alone, each channel's data folder and shared saves in the PLAY command, Copy info / bug report lines,BETA.mdparsing).tests/test_bug_report_info.py,tests/test_docs_links.py,tests/test_text_write_line_endings.py,tests/test_win_launchers.py: OK.scripts/check_no_game_data.pyon every changed file: clean.APPDATA, neutral paths, the game not started): the closed menu on main, the open menu, the beta confirmation dialog, and the status corner on beta (a temporary localbetaworktree with a sampleBETA.md, removed afterwards). Available on request.docs/launcher.md: one paragraph under Updates.Launcher change: needs OreoFR's review. Self-contained (new functions and a rail row; #3405 AUTO-DETECT touches other parts of the same file).
AI-assisted (Claude Code). No GPU run: the game was not launched.
🤖 Generated with Claude Code
Merged into main together with #3405 in
4d9e4d05d(one combined change, OreoFR's request): see https://git.leonida.now/leonida/mandy/pulls/3405 for the merge note and CI.AI-assisted (Claude Code).