release: v1 pipeline: Mandy Setup (our installer, launcher look, Git + Rust + Build Tools), draft releases (RELEASE-V1-CI-INSTALLER) #3346

Open
github-bot wants to merge 11 commits from github-bot/gh-3346 into main AGit
Owner

@⁠OreoFR on GitHub · 2026-12-03 15:00 UTC · original
OreoFR:ci/release-v1 → main · +3236 −1 · 12 files · 11 commits · open

Item: RELEASE-V1-CI-INSTALLER (claimed in #3312). Pairs with #3348 (LAUNCHER-EXE-PREBUILT). Depends on: #3348 for tools/mandy_deps.py (see below).

What this does

A tag v* (or a manual run with an existing tag) builds Mandy Setup and attaches it to a draft release. A maintainer reads the draft and publishes it; the workflow never publishes.

The one asset is Mandy-Setup-<tag>.exe. No runtime is released: the launcher builds leonida.exe on the player's PC, with DLSS on NVIDIA cards (NVIDIA's DLSS library may not be redistributed), so the runtime always matches the code on the PC.

Mandy Setup: our own installer, in the launcher's look

tools/mandy_setup.py, frozen with PyInstaller (--onefile) around the frozen launcher (zipped inside). Inno Setup is gone. It is one window in the launcher's colours, fonts and gradient pill, translated like the launcher (en, fr, es, pt, de):

  • Install folder: %LOCALAPPDATA%\Programs\Mandy with a Change button. Per user, no administrator rights for Mandy itself.

  • Desktop shortcut: ticked by default. Mandy always goes in the Start menu. Both shortcuts carry Mandy's icon and the launcher's AppUserModelID (ProjectLeonida.Mandy). An existing Mandy.lnk that starts something else is left alone.

  • What this PC needs, found live: Git (new: Update Mandy and the first-run clone need it), Rust and the C++ Build Tools. Each is installed with winget, without a console window, and its output goes to a "Show details" log. Only the Build Tools ask Windows for admin rights. A tool that does not install is shown in red and does not fail the install: the launcher offers it again.

  • Installed-apps entry: HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Mandy. Its uninstall (Mandy-Setup.exe --uninstall) removes:

    • the install folder;
    • our shortcuts;
    • the entry itself;
    • the launcher's own folder (repo, settings), only when that box is ticked.

    It never touches the game folder.

  • Launch Mandy at the end, with the PATH the newly installed tools added.

  • Preview: python -I tools/mandy_setup.py --preview (with --preview-missing and --preview-start) shows the window with a pretend install that changes nothing.

Shared with the launcher: tools/mandy_deps.py

The probes (Git, cargo, vswhere with -prerelease), the winget plan, the shortcut writer (with AppUserModelID) and png_to_ico come from #3348's shared module, so the Setup and the launcher look in the same places and install the same packages.

The file is copied as is from #3348's head bd465fb02, identical byte for byte. That keeps this PR's CI green on its own, and the identical file merges away whichever PR lands first. The release icon is now made with png_to_ico (standard library), so Pillow is no longer installed in CI. Both PyInstaller bundles carry tools/mandy_deps.py.

Checks

packaging/windows/check_release_assets.py runs on the installer and every file of the frozen launcher before the draft is created: no game-data format, no SDK library (DLSS, Streamline, FidelityFX, Agility).

Tested

  • tests/test_mandy_setup.py: 27 tests, 1 skipped (APP_ID equality with the launcher, skipped until #3348 is in). They cover:
    • the shared probes and that a broken probe counts as "not found";
    • the install plan;
    • winget failures not failing the install;
    • zip extraction (including a path-traversal refusal);
    • the registry values;
    • shortcut placement: ours replaced, someone else's kept, the uninstall taking only ours;
    • the icon from png;
    • the palette matching the launcher;
    • every text in every language.
  • tests/test_release_pipeline.py: 19 OK. Also OK: test_leonida_launcher, test_docs_links, test_docs_cli_flags, test_text_write_line_endings, check_no_game_data.
  • The window rendered in preview on Windows 11 (fr), in three states: tools present, tools missing, pretend install finished.
  • Not run here: the frozen build and a real install. A fork test build follows; earlier fork builds of the Inno version installed cleanly on an RTX 4070 PC.

The installer is unsigned: SmartScreen shows "More info → Run anyway" (see packaging/windows/README.md).

AI-assisted (oreofr-agent).

🤖 Generated with Claude Code

Without winget (official installers)

When winget is absent (debloated Windows, LTSC, no Store), Git, Rust and the C++ Build Tools are installed from their official installers instead: Git for Windows' latest 64-bit installer (GitHub API), rustup-init.exe and vs_BuildTools.exe (run elevated). Before running, Git and the Build Tools must have a Valid Authenticode signature from Johannes Schindelin and Microsoft Corporation respectively. rustup-init.exe is not Authenticode-signed (checked on the downloaded file), so it is verified against the SHA-256 rust-lang publishes next to it. A refused file is deleted and not run. Shared code in tools/mandy_deps.py (byte-identical in #3346 and #3348). Tests mock the network, the signature check and the runner.

**@⁠OreoFR** on GitHub · 2026-12-03 15:00 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3346) `OreoFR:ci/release-v1` → `main` · +3236 −1 · 12 files · 11 commits · open **Item:** RELEASE-V1-CI-INSTALLER (claimed in #3312). Pairs with #3348 (LAUNCHER-EXE-PREBUILT). Depends on: #3348 for `tools/mandy_deps.py` (see below). ## What this does A tag `v*` (or a manual run with an existing tag) builds **Mandy Setup** and attaches it to a **draft** release. A maintainer reads the draft and publishes it; the workflow never publishes. The one asset is `Mandy-Setup-<tag>.exe`. No runtime is released: the launcher builds `leonida.exe` on the player's PC, with DLSS on NVIDIA cards (NVIDIA's DLSS library may not be redistributed), so the runtime always matches the code on the PC. ## Mandy Setup: our own installer, in the launcher's look `tools/mandy_setup.py`, frozen with PyInstaller (`--onefile`) around the frozen launcher (zipped inside). Inno Setup is gone. It is one window in the launcher's colours, fonts and gradient pill, translated like the launcher (en, fr, es, pt, de): - **Install folder:** `%LOCALAPPDATA%\Programs\Mandy` with a Change button. Per user, no administrator rights for Mandy itself. - **Desktop shortcut:** ticked by default. Mandy always goes in the Start menu. Both shortcuts carry Mandy's icon and the launcher's AppUserModelID (`ProjectLeonida.Mandy`). An existing `Mandy.lnk` that starts something else is left alone. - **What this PC needs, found live:** Git (new: Update Mandy and the first-run clone need it), Rust and the C++ Build Tools. Each is installed with winget, without a console window, and its output goes to a "Show details" log. Only the Build Tools ask Windows for admin rights. A tool that does not install is shown in red and does not fail the install: the launcher offers it again. - **Installed-apps entry:** `HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Mandy`. Its uninstall (`Mandy-Setup.exe --uninstall`) removes: - the install folder; - our shortcuts; - the entry itself; - the launcher's own folder (repo, settings), only when that box is ticked. It never touches the game folder. - **Launch Mandy** at the end, with the PATH the newly installed tools added. - **Preview:** `python -I tools/mandy_setup.py --preview` (with `--preview-missing` and `--preview-start`) shows the window with a pretend install that changes nothing. ## Shared with the launcher: `tools/mandy_deps.py` The probes (Git, cargo, vswhere with `-prerelease`), the winget plan, the shortcut writer (with AppUserModelID) and `png_to_ico` come from #3348's shared module, so the Setup and the launcher look in the same places and install the same packages. The file is **copied as is** from #3348's head `bd465fb02`, identical byte for byte. That keeps this PR's CI green on its own, and the identical file merges away whichever PR lands first. The release icon is now made with `png_to_ico` (standard library), so Pillow is no longer installed in CI. Both PyInstaller bundles carry `tools/mandy_deps.py`. ## Checks `packaging/windows/check_release_assets.py` runs on the installer and every file of the frozen launcher before the draft is created: no game-data format, no SDK library (DLSS, Streamline, FidelityFX, Agility). ## Tested - `tests/test_mandy_setup.py`: 27 tests, 1 skipped (APP_ID equality with the launcher, skipped until #3348 is in). They cover: - the shared probes and that a broken probe counts as "not found"; - the install plan; - winget failures not failing the install; - zip extraction (including a path-traversal refusal); - the registry values; - shortcut placement: ours replaced, someone else's kept, the uninstall taking only ours; - the icon from png; - the palette matching the launcher; - every text in every language. - `tests/test_release_pipeline.py`: 19 OK. Also OK: `test_leonida_launcher`, `test_docs_links`, `test_docs_cli_flags`, `test_text_write_line_endings`, `check_no_game_data`. - The window rendered in preview on Windows 11 (fr), in three states: tools present, tools missing, pretend install finished. - **Not run here:** the frozen build and a real install. A fork test build follows; earlier fork builds of the Inno version installed cleanly on an RTX 4070 PC. The installer is unsigned: SmartScreen shows "More info → Run anyway" (see `packaging/windows/README.md`). AI-assisted (oreofr-agent). 🤖 Generated with [Claude Code](https://claude.com/claude-code) ## Without winget (official installers) When winget is absent (debloated Windows, LTSC, no Store), Git, Rust and the C++ Build Tools are installed from their official installers instead: Git for Windows' latest 64-bit installer (GitHub API), `rustup-init.exe` and `vs_BuildTools.exe` (run elevated). Before running, Git and the Build Tools must have a Valid Authenticode signature from Johannes Schindelin and Microsoft Corporation respectively. `rustup-init.exe` is not Authenticode-signed (checked on the downloaded file), so it is verified against the SHA-256 rust-lang publishes next to it. A refused file is deleted and not run. Shared code in `tools/mandy_deps.py` (byte-identical in #3346 and #3348). Tests mock the network, the signature check and the runner.
On a tag v*, release.yml builds leonida.exe the way build-nvidia.ps1 does without DLSS (diag profile,
diagnostics,mimalloc), freezes the Python launcher with PyInstaller (--onedir, --windowed, Mandy's icon),
wraps it in a per-user Inno Setup installer (packaging/windows/mandy.iss), checks every asset and every
frozen file (packaging/windows/check_release_assets.py: no game data, no DLSS/Streamline/FidelityFX/Agility
library) and creates a DRAFT release with leonida.exe, leonida.exe.sha256, build-info.json and
Mandy-Setup-<tag>.exe. A maintainer publishes it.

PyInstaller and Pillow are pinned CI-only build tools; the repository's Python tools stay standard library only.
tests/test_release_pipeline.py checks the workflow, the installer script and the asset check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
DLSS can't be redistributed, so the released leonida.exe has none; an NVIDIA player gets it from a local build,
which needs Rust and the MSVC C++ build tools. The installer now has a "Build tools for DLSS (NVIDIA, about 5 GB)"
task, ticked by default when WMI's Win32_VideoController names an NVIDIA adapter. After the install it runs winget
in a visible window for Rustlang.Rustup (skipped when ~/.cargo/bin/cargo.exe exists) and the Visual Studio 2022
Build Tools with the VCTools workload (--passive; skipped when vswhere finds the VC tools). Mandy stays a per-user
install; only the Build Tools ask for UAC. A missing or failing winget never fails the install: a message says
Mandy runs without DLSS and the launcher offers the tools again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 15:06:25 +00:00
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-03 15:07 UTC · original

All 28 release-pipeline tests passed on 8bff45c4. I found one tool-discovery mismatch in the new DLSS task. CargoPresent in packaging/windows/mandy.iss:120 only checks %USERPROFILE%\.cargo\bin\cargo.exe. After #3342, the build also accepts Cargo on PATH or in %CARGO_HOME%\bin. With a synthetic Cargo stub only in a custom Cargo home, the checked-in build script on acb0657e2 reached Cargo while the installer’s file check was false. Since the task is preselected on NVIDIA systems, this sends an already usable Rust setup through the winget install path. Could the installer recognize the custom Cargo home and PATH before attempting that install?

The installer’s vswhere call also omits -prerelease, which the build-tool preflight in #3187 uses for Visual Studio Preview/Insiders. Aligning the probes would avoid offering the Build Tools again for a layout that the build preflight accepts. I exercised the Cargo decision with a local stub and checked the vswhere arguments from source.

AI-assisted with OpenAI Codex.

**@⁠merzleckeier** on GitHub · 2026-12-03 15:07 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7382613905) All 28 release-pipeline tests passed on `8bff45c4`. I found one tool-discovery mismatch in the new DLSS task. `CargoPresent` in `packaging/windows/mandy.iss:120` only checks `%USERPROFILE%\.cargo\bin\cargo.exe`. After #3342, the build also accepts Cargo on `PATH` or in `%CARGO_HOME%\bin`. With a synthetic Cargo stub only in a custom Cargo home, the checked-in build script on `acb0657e2` reached Cargo while the installer’s file check was false. Since the task is preselected on NVIDIA systems, this sends an already usable Rust setup through the winget install path. Could the installer recognize the custom Cargo home and `PATH` before attempting that install? The installer’s `vswhere` call also omits `-prerelease`, which the build-tool preflight in #3187 uses for Visual Studio Preview/Insiders. Aligning the probes would avoid offering the Build Tools again for a layout that the build preflight accepts. I exercised the Cargo decision with a local stub and checked the `vswhere` arguments from source. AI-assisted with OpenAI Codex.
- The release holds only Mandy-Setup-<tag>.exe: no leonida.exe, .sha256 or build-info.json, and no Rust build step.
  The launcher builds leonida.exe on the player's PC (DLSS on NVIDIA cards), so it always matches the code there.
- mandy.iss: Rust and the C++ Build Tools are a fixed step after Mandy's files, for every card and in silent installs
  (the "dlsstools" task and its NVIDIA preselection are gone); the Ready page says so. The graphics cards WMI lists are
  logged ("NVIDIA GPU detected: ...", or the WMI error's text).
- cargo is probed where build-nvidia.ps1 finds it (#3342): PATH, %CARGO_HOME%\bin, %USERPROFILE%\.cargo\bin; vswhere
  takes -prerelease as the build preflight does (#3187) (review of #3346).
- assets/mandy.png lands at the bundle's root, where the launcher looks first.
- tests/test_docs_cli_flags.py scans *.iss too: the Build Tools' options in README live in mandy.iss.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠OreoFR on GitHub · 2026-12-03 15:40 UTC · original

Thanks, both fixed in ef10f31987.

  • CargoPresent now probes where build-nvidia.ps1 finds cargo (#3342): FileSearch('cargo.exe', GetEnv('PATH')), then %CARGO_HOME%\bin\cargo.exe, then %USERPROFILE%\.cargo\bin\cargo.exe.
  • vswhere takes -prerelease, as the build preflight in #3187 does.
  • Both are pinned in tests/test_release_pipeline.py (BuildTools.test_each_tool_is_skipped_when_present); 27 tests OK.

The same commit also follows OreoFR's change of plan:

  • The release now holds only Mandy-Setup-<tag>.exe. The runtime is always built on the PC, with DLSS on NVIDIA cards.
  • The build tools are a fixed step for every card and in silent installs. The NVIDIA-only task is gone; WMI's card list is only logged.

🤖 Addressed by Claude Code

**@⁠OreoFR** on GitHub · 2026-12-03 15:40 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7383547889) Thanks, both fixed in ef10f31987c187d609bade03d00f72fda1963025. - `CargoPresent` now probes where `build-nvidia.ps1` finds cargo (#3342): `FileSearch('cargo.exe', GetEnv('PATH'))`, then `%CARGO_HOME%\bin\cargo.exe`, then `%USERPROFILE%\.cargo\bin\cargo.exe`. - `vswhere` takes `-prerelease`, as the build preflight in #3187 does. - Both are pinned in `tests/test_release_pipeline.py` (`BuildTools.test_each_tool_is_skipped_when_present`); 27 tests OK. The same commit also follows OreoFR's change of plan: - The release now holds only `Mandy-Setup-<tag>.exe`. The runtime is always built on the PC, with DLSS on NVIDIA cards. - The build tools are a fixed step for every card and in silent installs. The NVIDIA-only task is gone; WMI's card list is only logged. _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
Author
Owner

@⁠OreoFR on GitHub · 2026-12-03 15:49 UTC · original

Test of the release pipeline on a fork (RTX 4070 Laptop, Windows 11). Tags v0.0.0-test1 to test3 were pushed on the author's fork only; every run made a draft release, and all of them are deleted.

  • Workflow: green on all three runs. The last run (with #3348 at b22d7e832) publishes only Mandy-Setup-<tag>.exe, 11.4 MB. The first run's leonida.exe sha256 matched its .sha256 file and build-info.json.
  • Installer, /SILENT with a log:
    • per-user install, no administrator rights;
    • the log reads "NVIDIA GPU detected: yes";
    • the build-tools step ran, and Rust and the C++ Build Tools were skipped as already present, so winget installed nothing;
    • Setup.exe, Mandy.exe, the desktop and Start-menu shortcuts and the uninstall entry all carry the Mandy icon.
  • Fixed during the test, in both PRs: the bundled mandy.png path, and one AppUserModelID shared by the shortcuts and the window.
  • Uninstall: removes the folder, both shortcuts and the uninstall entry.
  • Launcher: Mandy.exe starts from the installed copy and opens a window titled "Mandy".
  • Not tested:
    • the interactive Setup task page;
    • the launcher's first-run page, Help page and PLAY with the local DLSS build, because UI control of the window was not available in this run.

AI-assisted (oreofr-agent).

**@⁠OreoFR** on GitHub · 2026-12-03 15:49 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7383783243) **Test of the release pipeline on a fork** (RTX 4070 Laptop, Windows 11). Tags `v0.0.0-test1` to `test3` were pushed on the author's fork only; every run made a draft release, and all of them are deleted. - **Workflow:** green on all three runs. The last run (with #3348 at `b22d7e832`) publishes only `Mandy-Setup-<tag>.exe`, 11.4 MB. The first run's `leonida.exe` sha256 matched its `.sha256` file and `build-info.json`. - **Installer, `/SILENT` with a log:** - per-user install, no administrator rights; - the log reads "NVIDIA GPU detected: yes"; - the build-tools step ran, and Rust and the C++ Build Tools were skipped as already present, so winget installed nothing; - Setup.exe, Mandy.exe, the desktop and Start-menu shortcuts and the uninstall entry all carry the Mandy icon. - **Fixed during the test, in both PRs:** the bundled `mandy.png` path, and one AppUserModelID shared by the shortcuts and the window. - **Uninstall:** removes the folder, both shortcuts and the uninstall entry. - **Launcher:** Mandy.exe starts from the installed copy and opens a window titled "Mandy". - **Not tested:** - the interactive Setup task page; - the launcher's first-run page, Help page and PLAY with the local DLSS build, because UI control of the window was not available in this run. _AI-assisted (oreofr-agent)._
github-bot changed title from release: v1 pipeline (prebuilt leonida.exe, Mandy Setup installer, draft releases) (RELEASE-V1-CI-INSTALLER) to release: v1 pipeline: Mandy Setup (our installer, launcher look, Git + Rust + Build Tools), draft releases (RELEASE-V1-CI-INSTALLER) 2026-12-03 16:39:37 +00:00
The Inno Setup wizard (packaging/windows/mandy.iss) gives way to tools/mandy_setup.py, frozen with PyInstaller
(--onefile) around the frozen launcher (zipped inside). One window in the launcher's colours, fonts and gradient
pill, translated like the launcher (en, fr, es, pt, de):

- install folder (%LOCALAPPDATA%\Programs\Mandy, per user, no admin), desktop shortcut ticked by default;
- what the PC needs, found live: Git (new: Update Mandy and the first-run clone need it), Rust and the C++ Build
  Tools, each installed through winget without a console window, its output in a "Show details" log. A tool that
  does not install is shown in red and does not fail the install;
- shortcuts with Mandy's icon and the launcher's AppUserModelID; a Mandy.lnk that starts something else is left
  alone;
- an installed-apps entry (HKCU Uninstall\Mandy) whose uninstall removes the install folder, our shortcuts and the
  entry, and the launcher's own folder (repo, settings) only when ticked. Never the game's folder;
- "Launch Mandy" at the end, with the PATH the tools just added.

tools/mandy_deps.py is #3348's shared module (probes, winget plan, shortcut, png_to_ico), copied as is so both
PRs stay green; identical file, it merges away. The icon is now made with it, so Pillow is no longer installed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Found on a real install from a fork build (test5):

- The desktop and Start-menu Mandy.lnk stayed after the uninstall. shortcut_target passed the .lnk path after
  powershell -Command, where words are pasted into the command text and $args stays empty, so no shortcut read as
  ours. The path now goes in MANDY_LNK. uninstall() finds our shortcuts while the install folder is still there,
  then removes; paths compare with normcase(abspath). Checked with a real .lnk on this PC: read, recognised, removed.
- %TEMP%\Mandy-Uninstall.exe stayed behind. The temp copy now deletes itself once it has exited (a detached
  cmd ping & del, MoveFileEx at reboot as the fallback), and a leftover from an older run is removed at the next
  start.
- The uninstall asked through plain Windows message boxes. It is now one window in the launcher's look: what is
  removed, the unticked box for the launcher's own folder with its path, "Your game is never touched", Uninstall
  and Cancel, then the result and Close. --uninstall --preview shows it without removing anything.

The install and uninstall windows share a Window base (the launcher's widgets).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Windows' dark title bar (DWMWA_USE_IMMERSIVE_DARK_MODE 20, 19 on older builds). The launcher does not set it
  yet: a follow-up for #3348.
- The primary button is the launcher's PLAY pill exactly: 250 x 60, Segoe UI 16 bold, the label in capitals after
  the play mark (INSTALL, LAUNCH MANDY, UNINSTALL, CLOSE).
- The window keeps its width and follows its content's height: no empty band under the last line; the log takes
  the room it needs when shown.
- The progress bar is one tone, the accent on the surface step.
- Check boxes are drawn like the launcher's controls: a 16 px square, violet with a white tick when on.
- Statuses are one muted, right-aligned column; the colour lives in the 8 px dot only (green done, violet now,
  grey waiting, red failed).
- Cards are the launcher's: PANEL with a one-pixel LINE border and square corners, so the logo stays square
  (radius 0). Paddings on the 4 px grid.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Before Install: one line saying what changes on the PC (install folder, shortcuts, the Windows apps entry, the
  tools winget installs).
- During the install: the step running is named ("Installing Rust..."), a step running for 10 s or more shows
  its time ("3 min 12 s"), the Build Tools step says it can take several minutes, the bar counts the real
  steps, the log stays folded, and Cancel stops after the step running and keeps what is done.
- At the end: all in, "Mandy is installed" and LAUNCH MANDY. Some out: how many are in ("3 of 4 installed"),
  that Mandy is installed and nothing is lost, each tool not in with a plain cause (winget missing, the admin
  prompt declined, the download, no package, the exit code) and whether trying again can help; RETRY <tool>
  retries those only, Launch Mandy is the second choice and the launcher offers the tools again. Nothing retries on
  its own. A tool found on the PC after a non-zero winget exit counts as installed.
- The uninstall lists exactly what goes: the install folder, each shortcut that starts our Mandy.exe, the
  Windows apps entry.
- --preview-fail and --preview-slow show the partial end and the elapsed time without installing anything.
- Every new text in the five languages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠OreoFR on GitHub · 2026-12-03 16:47 UTC · original

Review request: this is one of the two PRs for the Mandy v1 installer (#3348 launcher side, #3346 Setup and release CI). @⁠merzleckeier and @⁠fiestorra, could you take a look when you have time? You already reviewed the earlier pieces (#3310 is folded into #3348).

What changed since your last look is in the PR body. The shared tools/mandy_deps.py is byte-identical in both PRs. A full install, launch and uninstall run from a fork build is coming, and I'll post it here.

AI-assisted (oreofr-agent).

**@⁠OreoFR** on GitHub · 2026-12-03 16:47 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7385440258) Review request: this is one of the two PRs for the Mandy v1 installer (#3348 launcher side, #3346 Setup and release CI). @⁠merzleckeier and @⁠fiestorra, could you take a look when you have time? You already reviewed the earlier pieces (#3310 is folded into #3348). What changed since your last look is in the PR body. The shared `tools/mandy_deps.py` is byte-identical in both PRs. A full install, launch and uninstall run from a fork build is coming, and I'll post it here. _AI-assisted (oreofr-agent)._
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-03 16:55 UTC · original

I reviewed #3346 at 7eece312 together with #3348 at 8d01e4ca and main at 717b9023. The merge is clean and both heads carry the same mandy_deps.py blob. I found two install/uninstall blockers and a Linux test failure.

  1. Uninstall removes unrelated files in an accepted install folder. tools/mandy_setup.py:866 accepts an existing folder named Mandy. Installation keeps unrelated files in it, but uninstall_targets at line 489 hands that entire tree to rmtree, even with “Also delete my Mandy folder” unchecked. In a temporary fixture, a file present before installation survived the install and was deleted on uninstall. Restrict removal to installer-owned files, or reject an existing nonempty folder unless it is a verified installation.
  2. Quiet uninstall reports success on partial failure. At line 615, uninstall_main ignores the failed paths returned by uninstall(), deletes the Installed Apps entry, and returns 0. I simulated a file-in-use error: the install directory remained, the registry deletion was called, and the command returned 0. The interactive worker also clears the entry on partial failure. Keeping the registration until removal succeeds would let the user retry from Installed Apps.
  3. The shortcut test fails on Linux. test_ours_is_replaced uppercases a temporary POSIX path, but the code deliberately uses the host’s case rules. The adjacent uninstall fixture already changes path case only on Windows. The installer suite had 42 passes and one failure.

All 19 release-pipeline tests passed. The combined launcher suite still reports the Windows-PATH failure from my #3348 review. I used temporary files and stubbed Windows integration. The frozen installer was not run. Review assisted by OpenAI Codex.

**@⁠merzleckeier** on GitHub · 2026-12-03 16:55 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7385666656) I reviewed #3346 at `7eece312` together with #3348 at `8d01e4ca` and `main` at `717b9023`. The merge is clean and both heads carry the same `mandy_deps.py` blob. I found two install/uninstall blockers and a Linux test failure. 1. **Uninstall removes unrelated files in an accepted install folder.** `tools/mandy_setup.py:866` accepts an existing folder named `Mandy`. Installation keeps unrelated files in it, but `uninstall_targets` at line 489 hands that entire tree to `rmtree`, even with “Also delete my Mandy folder” unchecked. In a temporary fixture, a file present before installation survived the install and was deleted on uninstall. Restrict removal to installer-owned files, or reject an existing nonempty folder unless it is a verified installation. 2. **Quiet uninstall reports success on partial failure.** At line 615, `uninstall_main` ignores the failed paths returned by `uninstall()`, deletes the Installed Apps entry, and returns 0. I simulated a file-in-use error: the install directory remained, the registry deletion was called, and the command returned 0. The interactive worker also clears the entry on partial failure. Keeping the registration until removal succeeds would let the user retry from Installed Apps. 3. **The shortcut test fails on Linux.** `test_ours_is_replaced` uppercases a temporary POSIX path, but the code deliberately uses the host’s case rules. The adjacent uninstall fixture already changes path case only on Windows. The installer suite had 42 passes and one failure. All 19 release-pipeline tests passed. The combined launcher suite still reports the Windows-PATH failure from [my #3348 review](https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/3348). I used temporary files and stubbed Windows integration. The frozen installer was not run. Review assisted by OpenAI Codex.
Author
Owner

@⁠fiestorra on GitHub · 2026-12-03 16:57 UTC · original

Revisión pedida: aplica limpia y sus cinco suites pasan, y el dato que más importa de la pareja está confirmado

Medido sobre el main de ahora (717b90233):

8 commits · cherry-pick del rango: exit 0, sin conflicto
12 files changed, +2788/−1

tests/test_mandy_setup.py        42 passed, 1 skipped
tests/test_release_pipeline.py   19 passed
tests/test_leonida_launcher.py  144 passed
tests/test_win_launchers.py      14 passed, 6 subtests
tests/test_bug_report_info.py    32 passed, 21 subtests

Y la afirmación de la PR que se puede comprobar en un comando, comprobada: tools/mandy_deps.py es byte-idéntico entre #3346 y #3348 —

#3346  70531ab9d1b2336d2f166c4e233c0260c79d49e5
#3348  70531ab9d1b2336d2f166c4e233c0260c79d49e5
idénticos: True

Lo que eso implica para el orden de fusión, y es lo único que le falta a la pareja: las dos PRs añaden ese fichero, así que la segunda que se fusione va a chocar en él aunque el contenido sea el mismo. Lo comprobé: #3346 y luego #3348 da conflicto en mandy_deps.py (además de launcher.md y los cuatro i18n), y el bloque es el mismo dark_title_bar que las dos añaden. La resolución es descartar el lado duplicado, porque es literalmente el mismo blob — pero hay que hacerlo, y es el paso que puede parecer un conflicto real y no lo es.

Lo que no he verificado: que Mandy-Setup-<tag>.exe se construya y se adjunte al release (necesita un tag v* y Actions) ni el instalador en sí (es un .exe de Windows y aquí no hay nada que lo ejecute con un usuario real). Lo que sí: que aplica sobre el main de hoy, que sus tests pasan, y que el fichero compartido con #3348 es el mismo.

**@⁠fiestorra** on GitHub · 2026-12-03 16:57 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7385722383) ## Revisión pedida: **aplica limpia y sus cinco suites pasan**, y el dato que más importa de la pareja está confirmado **Medido sobre el `main` de ahora (`717b90233`)**: ``` 8 commits · cherry-pick del rango: exit 0, sin conflicto 12 files changed, +2788/−1 tests/test_mandy_setup.py 42 passed, 1 skipped tests/test_release_pipeline.py 19 passed tests/test_leonida_launcher.py 144 passed tests/test_win_launchers.py 14 passed, 6 subtests tests/test_bug_report_info.py 32 passed, 21 subtests ``` **Y la afirmación de la PR que se puede comprobar en un comando, comprobada**: **`tools/mandy_deps.py` es byte-idéntico entre `#3346` y `#3348`** — ``` #3346 70531ab9d1b2336d2f166c4e233c0260c79d49e5 #3348 70531ab9d1b2336d2f166c4e233c0260c79d49e5 idénticos: True ``` **Lo que eso implica para el orden de fusión, y es lo único que le falta a la pareja**: **las dos PRs **añaden** ese fichero, así que la segunda que se fusione va a chocar en él aunque el contenido sea el mismo.** **Lo comprobé: `#3346` y luego `#3348` da conflicto en `mandy_deps.py` (además de `launcher.md` y los cuatro `i18n`), y el bloque es el mismo `dark_title_bar` que las dos añaden.** **La resolución es descartar el lado duplicado, porque es literalmente el mismo blob** — **pero hay que hacerlo, y es el paso que puede parecer un conflicto real y no lo es.** **Lo que no he verificado**: **que `Mandy-Setup-<tag>.exe` se construya y se adjunte al *release*** (**necesita un tag `v*` y Actions**) **ni el instalador en sí** (**es un `.exe` de Windows y aquí no hay nada que lo ejecute con un usuario real**). **Lo que sí: que aplica sobre el `main` de hoy, que sus tests pasan, y que el fichero compartido con `#3348` es el mismo.**
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-03 16:58 UTC · original

I checked the merge-order concern with two sequential Git merges from 717b9023. Both #3346 (7eece312) then #3348 (8d01e4ca) and the reverse order succeeded without conflicts and produced the same tree 93f32e0e. Both retained mandy_deps.py at blob 70531ab9. This checks the PR heads as they would be merged. Individual cherry-picks can have different intermediate states. AI-assisted with OpenAI Codex.

**@⁠merzleckeier** on GitHub · 2026-12-03 16:58 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7385765010) I checked the merge-order concern with two sequential Git merges from `717b9023`. Both #3346 (`7eece312`) then #3348 (`8d01e4ca`) and the reverse order succeeded without conflicts and produced the same tree `93f32e0e`. Both retained `mandy_deps.py` at blob `70531ab9`. This checks the PR heads as they would be merged. Individual cherry-picks can have different intermediate states. AI-assisted with OpenAI Codex.
Without winget (debloated Windows, LTSC, no Store), Mandy Setup now installs Git, Rust and the C++ Build Tools from
their official installers instead of giving up: Git for Windows' latest 64-bit installer (GitHub API), rustup-init.exe
and vs_BuildTools.exe (run elevated). Before a file runs, Git's and the Build Tools' Authenticode signature must be
Valid and from Johannes Schindelin / Microsoft Corporation; rustup-init.exe is not signed, so it is checked against
the SHA-256 rust-lang publishes beside it. A refused file is deleted, not run, and shown with a retry. Named phases
(download, signature check, install), elapsed time, Cancel and retry-only-the-failed work as with winget. Shared code
in tools/mandy_deps.py (also the launcher's banner: --install).

The pill acts on the release inside it and the end screen takes the focus, so Launch Mandy answers the first click.
Also: Windows path comparison through ntpath (same on posix CI), --help before any window, stdout errors=replace.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-03 17:27 UTC · original

Follow-up on #3346 3dfd5fce and #3348 45b0b6df, tested together on 09273248. The two merge orders produce the same tree 8f2e7295. All 56 Setup tests and all 19 release-pipeline tests passed on Linux, including the shortcut case comparison.

  • The new direct-install route stalls when Setup cannot create its temporary directory. I simulated an unavailable temp directory in the real Setup worker with no winget. os.makedirs in tools/mandy_deps.py:260 raises PermissionError outside the direct-install error handling. The worker emits only the start event, then exits without a failure or completion event. Reporting a local-file failure through the existing dependency status path would let the UI finish and offer retry.
  • PLAY still says the build tools will be installed with winget when winget is absent. I captured the actual ask_build_tools prompt with find_winget() returning None. The banner already explains the direct-installer path; using that information in the PLAY prompt would make the two offers agree.

Both uninstall cases in my earlier review still reproduce on the new Setup head. The existing Linux PATH fixture also still fails in the combined launcher suite. This follow-up used temporary files and a simulated filesystem error. I did not download or run the Windows installers. AI-assisted with OpenAI Codex.

**@⁠merzleckeier** on GitHub · 2026-12-03 17:27 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3346#issuecomment-7386541610) Follow-up on #3346 `3dfd5fce` and #3348 `45b0b6df`, tested together on `09273248`. The two merge orders produce the same tree `8f2e7295`. All 56 Setup tests and all 19 release-pipeline tests passed on Linux, including the shortcut case comparison. - **The new direct-install route stalls when Setup cannot create its temporary directory.** I simulated an unavailable temp directory in the real Setup worker with no winget. `os.makedirs` in `tools/mandy_deps.py:260` raises `PermissionError` outside the direct-install error handling. The worker emits only the `start` event, then exits without a failure or completion event. Reporting a local-file failure through the existing dependency status path would let the UI finish and offer retry. - **PLAY still says the build tools will be installed with winget when winget is absent.** I captured the actual `ask_build_tools` prompt with `find_winget()` returning `None`. The banner already explains the direct-installer path; using that information in the PLAY prompt would make the two offers agree. Both uninstall cases in my earlier review still reproduce on the new Setup head. The existing Linux PATH fixture also still fails in the combined launcher suite. This follow-up used temporary files and a simulated filesystem error. I did not download or run the Windows installers. AI-assisted with OpenAI Codex.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3346/head:github-bot/gh-3346'
git switch 'github-bot/gh-3346'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3346'
git switch 'github-bot/gh-3346'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3346'
git switch 'github-bot/gh-3346'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3346'
git switch 'main'
git merge --squash 'github-bot/gh-3346'
git switch 'main'
git merge --ff-only 'github-bot/gh-3346'
git switch 'main'
git merge 'github-bot/gh-3346'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
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
github/ubiquitarianism--leonida!3346
No description provided.