diff options
| author | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-12-03 02:54:39 +0100 |
|---|---|---|
| committer | OreoFR <29048345+OreoFR@users.noreply.github.com> | 2026-12-03 02:56:18 +0100 |
| commit | de2358e0bd8ecc3e3107096fe4c1f20801744b90 (patch) | |
| tree | 25af19a8ee16d40e06de45a53ce9f403a068af31 /runtime/src/xma2_decoder.cpp | |
| parent | a0a3189f3cacb311a4c84670027ddae9ae3e7881 (diff) | |
launcher: Update Mandy makes a zip copy a git clone, installing Git when it is missing (LAUNCHER-ZIP-TO-CLONE)
A copy downloaded as a zip has no .git, so the launcher could only tell the
player to clone instead. Now the Updates card shows Update Mandy on a zip
copy too, and --update turns the folder into a clone in place
(zip_to_clone):
- git init, origin set to https://github.com/ProjectLeonida/mandy.git,
a fetch of main, and a local main that follows it. The index is set to
main, with the files left as they are.
- Every tracked file that differs (the zip's older version or the
player's own edit: they cannot be told apart) is first copied to
%LOCALAPPDATA%\Leonida\zip-copy-backup-<date>-<time>. Then main's
version is checked out over the tracked files.
- Untracked files (builds, caches, game_path.txt) are not touched.
- The usual rebuild follows when d3d12/ changed.
- On any failure the new .git is removed, so the next start finds a zip
copy again, never half a clone.
Without Git, the question before the update says that Git is installed
first with winget (Git.Git, silent). The window passes --install-git; a
console asks [y/N]. find_git also looks where Git for Windows puts
git.exe, since the running launcher's PATH is older than the install, and
_git uses it. Without winget, and on Linux or macOS, the launcher says how
to install Git and changes nothing.
Tests:
- find_git, install_git and the ask / --install-git paths, with stubs.
- With the real git against a bare origin: an older "zip" with an edited
file, an added file and an ignored build becomes a clean clone at
origin/main. The differing files are backed up, the others are kept,
and the next run_update pulls a new commit.
- A failed download leaves the zip copy as it was.
- The texts are in de/es/fr/pt; docs/launcher.md is updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions