launcher: an optional native launcher (Rust, iced) to check, build and start the port #851

Merged
aslan2142 merged 17 commits from upstream-pr/851 into main 2026-11-29 16:52:13 +00:00
aslan2142 commented 2026-11-24 14:33:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-24T14:33:37Z.


Claimed in the coordination issue as: OLD-4578 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7134359055

Restoration of my original pull request, old upstream PR 4578 in ItsNotRexed/Leonida, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at d0da7dade8. The rebase changed one thing in code: in tests/test_docs_cli_flags.py, the launcher's three cargo flags join main's newer FOREIGN set, which now also lists the spirv-opt passes. The two commit messages that cited the old number now say "old upstream PR 4578". launcher/ and .github/workflows/launcher.yml are byte for byte the old final head.

Depends on: #659 (small text conflict in tests/test_docs_cli_flags.py's FOREIGN set)

What and why

An optional native launcher in launcher/ (Rust, stock iced 0.14). It checks your copy, builds the port with make_game.py, and starts the loader the way docs/boot.md §2 describes. Outside launcher/ it adds only two things:

  • its CI workflow, .github/workflows/launcher.yml;
  • three cargo flags in the docs flag check, tests/test_docs_cli_flags.py.

Related: LEONIDA-LEGACY-APP (claimed in #14, a Windows desktop launcher) covers similar ground; happy to coordinate.

Screenshots

The launcher's own tests drew all of these. Every path and line of output in them is made up.

Play, dark Play, light
Play page, dark Play page, light
A build running A failed check
A build running A failed check
Game files Performance
Game files page Performance page

A narrow window folds the sidebar away:

Narrow window

Why this launcher

  • From your copy to Play in one window.
    • Check, Build and Play share one main button, which follows what already exists. Cancel takes its place while something runs.
    • Play passes the loader its documented arguments. While the package has no executable, the launcher explains why Play is disabled.
  • Nothing hidden.
    • Every setting names the exact flag or variable it sets.
    • The output panel shows the exact command line that runs.
    • Settings are kept in a small versioned file in the user's config folder.
  • One native program for Windows and Linux (Wayland and X11). macOS support is planned (see below).
    • The fonts and the logo are built in, so the launcher itself needs nothing installed. make_game.py still needs Python, as it does today.
    • It draws on the GPU (Vulkan or DX12, through wgpu), and on the CPU where neither works.
  • Nothing online.
    • No telemetry and no update check.
    • It reads no game file itself. make_game.py does that, as it does on the command line.
  • Keyboard first, and checked for contrast.
    • Shortcuts: Tab, Enter and Space; Ctrl+L switches light/dark; Ctrl+Page Up/Down moves between pages. The focus ring is always visible.
    • Every text colour is tested at 4.5:1 on every surface, in both modes.
    • LEONIDA_REDUCE_MOTION=1 turns animation off.
  • Light when idle.
    • Nothing animates or redraws once it has settled.
    • The Play page's background is generated from the theme's colours, once per window size and theme, off the interface thread.
  • Tested without a GPU or game files, which lets CI run the tests:
    • unit tests;
    • keyboard tests;
    • screenshot tests drawn offscreen.
  • Self-contained: everything lives in launcher/, apart from its CI workflow and the docs flag check.

What it does

  • Play:
    • Check runs make_game.py --game <package> --check.
    • Build runs make_game.py --game <package> --out <output> [--work <work>] with the chosen options.
    • Play runs gta6rt --run <exe> --game-dir <package> with LEONIDA_D3D12=vulkan. On Linux it goes through gta6rt.sh.
    • A progress bar follows the build's stages, and the last lines of output show live.
    • It also reads @@stage, @@progress and @@error lines, in case make_game.py prints them one day.
  • Game files: --game, --out, --work, --full-check.
  • Build: --stages, --wav.
  • Performance: LEONIDA_VK_DEVICE, LEONIDA_VK_VALIDATION, --wave64-emulate, --jobs.
  • Diagnostics: --trace-d3d12, --overlay, LEONIDA_UNIMPLEMENTED.
  • Window:
    • its own header bar, with the light/dark switch;
    • a sidebar that folds away below 640 px wide;
    • rounded corners drawn by the app (LEONIDA_WINDOW_FRAME=0 gives a plain window). On Windows it uses Windows 11's own corners instead.
  • Cancel before the process has started: if Cancel is pressed before the process reports Started, the process is stopped as soon as it starts (launcher/tests/cancel.rs).

Planned for later versions

  • Updates:
    • a check for new versions of the port, and a rebuild of what changed;
    • opt-in, and the only part that would go online.
  • A Tools page:
    • checks the build's prerequisites (Python, .NET SDK, Vulkan SDK, llvm-mc);
    • says what is missing and where to get it.
  • A Compatibility page:
    • the translator's fallback flags (--no-float-controls, --bary-fallback, --texel-offset-fallback, --f16-interp-fallback, --mesh-compute, --pc-tail-ubo);
    • --runtime-build.
  • macOS support: iced already runs there (through Metal), and so do the folder picker and the settings folder. Still to add:
    • Cmd for the shortcuts where Ctrl is used today;
    • the native window buttons over a transparent title bar;
    • a setting for the Wine or CrossOver that runs the loader, as on Linux;
    • a macOS compile check.
  • Windows and packaging: testing on Windows, then a single download per platform.
  • Once the game boots:
    • launch options;
    • a view of the startup trace (--trace, tools/boot_trace.py).

Relation to old upstream PR 3558 (BUILD-1041)

  • That pull request was a Python/Tk front end for make_game.py. It also downloaded the build tools and updated the checkout with git.
  • This one:
    • is native on Windows and Linux;
    • adds the Play step;
    • leaves installing tools and updating for later, as opt-in features.
  • If the project wants one launcher, I'm glad to fold what's useful from either into the other.

Reviews on the old repository

These checks were made on the old repository, before it went private:

  • cynbun re-checked the final head: read the code and ran the CPU tests on Linux.
  • tedin7 pointed out that nothing tested the Cancel-before-Started fix. launcher/tests/cancel.rs was added for that. Removing the fix's lines makes it fail.
  • Kam471 built and tested it on Windows 11 (MSVC, Rust 1.98): 174 tests passed, with clippy and fmt clean.

For the maintainer to decide

  • A Rust toolchain for one optional tool. CONTRIBUTING.md covers Python only.
  • New binary files:
    • four font files, about 620 KB, under the SIL OFL 1.1 with their licence texts beside them;
    • a 5,264-line Cargo.lock.
  • A new CI workflow, .github/workflows/launcher.yml, on Windows and Ubuntu.
    • It runs cargo fmt --check, cargo clippy and cargo test.
    • It runs only when launcher/**, assets/logo.png or the workflow itself changes.
    • It needs no GPU, no display and no game files.

Tested

Linux 7.3.5, Rust 1.100.0, on the rebased branch. Nothing opened a window: DISPLAY and WAYLAND_DISPLAY were unset, and every page was drawn offscreen on the CPU (tiny-skia).

  • cargo test --locked: everything passes.
    • 152 unit tests (2 ignored: a right-to-left text case that depends on system fonts, and a timing run).
    • The integration suites: screenshots 8, keyboard 9, launch 3, scene cache 2, cancel 1, glows 1, chips 1 and polish 1.
    • 1 doctest (2 ignored).
  • What the tests cover:
    • the command lines, for Windows and Linux;
    • the process handling, through a stand-in script in place of make_game.py;
    • every page, drawn in both modes at three window sizes.
  • Lints and build:
    • cargo clippy --locked --all-targets -- -D warnings and cargo fmt --check are clean;
    • cargo build --release --locked succeeds.
  • The fonts: launcher/fonts/SHA256SUMS matches all four font files.
  • Repository checks:
    • all 12 tests/test_docs_*.py pass, including test_docs_cli_flags.py;
    • actionlint 1.7.7 is clean on .github/workflows/launcher.yml;
    • python -I scripts/check_no_game_data.py passes on every changed file.
  • git diff --check flags only trailing spaces on one line of each of the three OFL licence texts. Those spaces are in the upstream licence text, which is kept verbatim.
  • Earlier, on the old repository:
    • the release binary ran in a real window on Linux (Wayland, RX 7900 XTX, Mesa 26.3.1 RADV);
    • clippy was clean for x86_64-pc-windows-gnu too.
  • Not tested:
    • the real window on Windows;
    • macOS;
    • a complete build, and a real launch (the package has no executable).

GPUs tested: n/a (this run was CPU-only; the earlier real-window run used an AMD Radeon RX 7900 XTX, Mesa 26.3.1 RADV, Linux)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase). It merges cleanly with main at d0da7dade; #659 edits the same FOREIGN lines.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
    • The screenshots and tests use made-up paths and output.
    • The Play page's scene is generated in code from the theme's colours.
    • The only files the launcher builds in are the repository's own assets/logo.png and four OFL fonts.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No translator change.)

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5474171724 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/851). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-24T14:33:37Z. --- Claimed in the coordination issue as: OLD-4578 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7134359055 Restoration of my original pull request, old upstream PR 4578 in `ItsNotRexed/Leonida`, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at d0da7dade8b688f2e0f7f23f4155d6cbb438809e. The rebase changed one thing in code: in `tests/test_docs_cli_flags.py`, the launcher's three cargo flags join main's newer `FOREIGN` set, which now also lists the spirv-opt passes. The two commit messages that cited the old number now say "old upstream PR 4578". `launcher/` and `.github/workflows/launcher.yml` are byte for byte the old final head. Depends on: #659 (small text conflict in tests/test_docs_cli_flags.py's FOREIGN set) ### What and why An optional native launcher in `launcher/` (Rust, stock iced 0.14). It checks your copy, builds the port with `make_game.py`, and starts the loader the way `docs/boot.md` §2 describes. Outside `launcher/` it adds only two things: - its CI workflow, `.github/workflows/launcher.yml`; - three cargo flags in the docs flag check, `tests/test_docs_cli_flags.py`. Related: LEONIDA-LEGACY-APP (claimed in #14, a Windows desktop launcher) covers similar ground; happy to coordinate. #### Screenshots The launcher's own tests drew all of these. Every path and line of output in them is made up. | Play, dark | Play, light | |---|---| | ![Play page, dark](https://raw.githubusercontent.com/aslan2142/Leonida/344dd983f65c21b208bd6c9866dca12e4c2ba7f3/1-play-dark.png) | ![Play page, light](https://raw.githubusercontent.com/aslan2142/Leonida/344dd983f65c21b208bd6c9866dca12e4c2ba7f3/2-play-light.png) | | A build running | A failed check | |---|---| | ![A build running](https://raw.githubusercontent.com/aslan2142/Leonida/344dd983f65c21b208bd6c9866dca12e4c2ba7f3/3-building-dark.png) | ![A failed check](https://raw.githubusercontent.com/aslan2142/Leonida/344dd983f65c21b208bd6c9866dca12e4c2ba7f3/4-failed-dark.png) | | Game files | Performance | |---|---| | ![Game files page](https://raw.githubusercontent.com/aslan2142/Leonida/344dd983f65c21b208bd6c9866dca12e4c2ba7f3/5-game-files-dark.png) | ![Performance page](https://raw.githubusercontent.com/aslan2142/Leonida/344dd983f65c21b208bd6c9866dca12e4c2ba7f3/6-performance-light.png) | A narrow window folds the sidebar away: ![Narrow window](https://raw.githubusercontent.com/aslan2142/Leonida/344dd983f65c21b208bd6c9866dca12e4c2ba7f3/7-narrow-dark.png) #### Why this launcher - **From your copy to Play in one window.** - Check, Build and Play share one main button, which follows what already exists. Cancel takes its place while something runs. - Play passes the loader its documented arguments. While the package has no executable, the launcher explains why Play is disabled. - **Nothing hidden.** - Every setting names the exact flag or variable it sets. - The output panel shows the exact command line that runs. - Settings are kept in a small versioned file in the user's config folder. - **One native program for Windows and Linux** (Wayland and X11). macOS support is planned (see below). - The fonts and the logo are built in, so the launcher itself needs nothing installed. `make_game.py` still needs Python, as it does today. - It draws on the GPU (Vulkan or DX12, through wgpu), and on the CPU where neither works. - **Nothing online.** - No telemetry and no update check. - It reads no game file itself. `make_game.py` does that, as it does on the command line. - **Keyboard first, and checked for contrast.** - Shortcuts: Tab, Enter and Space; Ctrl+L switches light/dark; Ctrl+Page Up/Down moves between pages. The focus ring is always visible. - Every text colour is tested at 4.5:1 on every surface, in both modes. - `LEONIDA_REDUCE_MOTION=1` turns animation off. - **Light when idle.** - Nothing animates or redraws once it has settled. - The Play page's background is generated from the theme's colours, once per window size and theme, off the interface thread. - **Tested without a GPU or game files**, which lets CI run the tests: - unit tests; - keyboard tests; - screenshot tests drawn offscreen. - **Self-contained:** everything lives in `launcher/`, apart from its CI workflow and the docs flag check. #### What it does - **Play:** - **Check** runs `make_game.py --game <package> --check`. - **Build** runs `make_game.py --game <package> --out <output> [--work <work>]` with the chosen options. - **Play** runs `gta6rt --run <exe> --game-dir <package>` with `LEONIDA_D3D12=vulkan`. On Linux it goes through `gta6rt.sh`. - A progress bar follows the build's stages, and the last lines of output show live. - It also reads `@@stage`, `@@progress` and `@@error` lines, in case `make_game.py` prints them one day. - **Game files:** `--game`, `--out`, `--work`, `--full-check`. - **Build:** `--stages`, `--wav`. - **Performance:** `LEONIDA_VK_DEVICE`, `LEONIDA_VK_VALIDATION`, `--wave64-emulate`, `--jobs`. - **Diagnostics:** `--trace-d3d12`, `--overlay`, `LEONIDA_UNIMPLEMENTED`. - **Window:** - its own header bar, with the light/dark switch; - a sidebar that folds away below 640 px wide; - rounded corners drawn by the app (`LEONIDA_WINDOW_FRAME=0` gives a plain window). On Windows it uses Windows 11's own corners instead. - **Cancel before the process has started:** if Cancel is pressed before the process reports Started, the process is stopped as soon as it starts (`launcher/tests/cancel.rs`). #### Planned for later versions - **Updates:** - a check for new versions of the port, and a rebuild of what changed; - opt-in, and the only part that would go online. - **A Tools page:** - checks the build's prerequisites (Python, .NET SDK, Vulkan SDK, `llvm-mc`); - says what is missing and where to get it. - **A Compatibility page:** - the translator's fallback flags (`--no-float-controls`, `--bary-fallback`, `--texel-offset-fallback`, `--f16-interp-fallback`, `--mesh-compute`, `--pc-tail-ubo`); - `--runtime-build`. - **macOS support:** iced already runs there (through Metal), and so do the folder picker and the settings folder. Still to add: - Cmd for the shortcuts where Ctrl is used today; - the native window buttons over a transparent title bar; - a setting for the Wine or CrossOver that runs the loader, as on Linux; - a macOS compile check. - **Windows and packaging:** testing on Windows, then a single download per platform. - **Once the game boots:** - launch options; - a view of the startup trace (`--trace`, `tools/boot_trace.py`). #### Relation to old upstream PR 3558 (BUILD-1041) - **That pull request** was a Python/Tk front end for `make_game.py`. It also downloaded the build tools and updated the checkout with git. - **This one:** - is native on Windows and Linux; - adds the Play step; - leaves installing tools and updating for later, as opt-in features. - If the project wants one launcher, I'm glad to fold what's useful from either into the other. #### Reviews on the old repository These checks were made on the old repository, before it went private: - **cynbun** re-checked the final head: read the code and ran the CPU tests on Linux. - **tedin7** pointed out that nothing tested the Cancel-before-Started fix. `launcher/tests/cancel.rs` was added for that. Removing the fix's lines makes it fail. - **Kam471** built and tested it on Windows 11 (MSVC, Rust 1.98): 174 tests passed, with `clippy` and `fmt` clean. #### For the maintainer to decide - **A Rust toolchain for one optional tool.** `CONTRIBUTING.md` covers Python only. - **New binary files:** - four font files, about 620 KB, under the SIL OFL 1.1 with their licence texts beside them; - a 5,264-line `Cargo.lock`. - **A new CI workflow,** `.github/workflows/launcher.yml`, on Windows and Ubuntu. - It runs `cargo fmt --check`, `cargo clippy` and `cargo test`. - It runs only when `launcher/**`, `assets/logo.png` or the workflow itself changes. - It needs no GPU, no display and no game files. ### Tested Linux 7.3.5, Rust 1.100.0, on the rebased branch. Nothing opened a window: `DISPLAY` and `WAYLAND_DISPLAY` were unset, and every page was drawn offscreen on the CPU (tiny-skia). - **`cargo test --locked`:** everything passes. - 152 unit tests (2 ignored: a right-to-left text case that depends on system fonts, and a timing run). - The integration suites: screenshots 8, keyboard 9, launch 3, scene cache 2, cancel 1, glows 1, chips 1 and polish 1. - 1 doctest (2 ignored). - **What the tests cover:** - the command lines, for Windows and Linux; - the process handling, through a stand-in script in place of `make_game.py`; - every page, drawn in both modes at three window sizes. - **Lints and build:** - `cargo clippy --locked --all-targets -- -D warnings` and `cargo fmt --check` are clean; - `cargo build --release --locked` succeeds. - **The fonts:** `launcher/fonts/SHA256SUMS` matches all four font files. - **Repository checks:** - all 12 `tests/test_docs_*.py` pass, including `test_docs_cli_flags.py`; - `actionlint` 1.7.7 is clean on `.github/workflows/launcher.yml`; - `python -I scripts/check_no_game_data.py` passes on every changed file. - **`git diff --check`** flags only trailing spaces on one line of each of the three OFL licence texts. Those spaces are in the upstream licence text, which is kept verbatim. - **Earlier, on the old repository:** - the release binary ran in a real window on Linux (Wayland, RX 7900 XTX, Mesa 26.3.1 RADV); - `clippy` was clean for `x86_64-pc-windows-gnu` too. - **Not tested:** - the real window on Windows; - macOS; - a complete build, and a real launch (the package has no executable). GPUs tested: n/a (this run was CPU-only; the earlier real-window run used an AMD Radeon RX 7900 XTX, Mesa 26.3.1 RADV, Linux) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). It merges cleanly with main at d0da7dade; #659 edits the same `FOREIGN` lines. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - The screenshots and tests use made-up paths and output. - The Play page's scene is generated in code from the theme's colours. - The only files the launcher builds in are the repository's own `assets/logo.png` and four OFL fonts. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (No translator change.) AI-assisted (Claude Code, Claude Opus 5.5).
abnalstlll-byte commented 2026-11-24 14:42:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T14:42:22Z.

Review: APPROVED


Clean-Room Audit & Architectural Review — PR #851 (OLD-4578 Native Launcher)

Tremendous work on restoring the iced native launcher!

Technical Verification & Security Audit

  1. Clean-Room & Legal Conformance:
    • Repository-wide scripts/check_no_game_data.py scan across all 70 files: 0 violations.
    • Zero game assets or proprietary binaries. Bundled fonts (Chakra Petch, IBM Plex Sans, JetBrains Mono) are verified open-source under SIL Open Font License v1.1 (OFL-1.1) with SHA-256 checksums in launcher/fonts/SHA256SUMS.
    • Strictly clean branding using repository's own assets/logo.png.
  2. Security & Offline Hermeticity:
    • [lints.rust] unsafe_code = "forbid" enforced.
    • Evaluated entire dependency tree in Cargo.lock: Zero networking / telemetry crates (no reqwest, hyper, tokio::net, or socket usage). Completely offline.
    • Child process lifecycle and tree cancellation (taskkill /T on Windows / process groups on Unix) thoroughly verified in launcher/src/process.rs and tests/cancel.rs.
  3. CI & Integration:
    • .github/workflows/launcher.yml path filters are tightly scoped to launcher/**.
    • tests/test_docs_cli_flags.py passes all 4 tests.
    • Re-evaluated 3-way merge against upstream main: 0 merge conflicts.

Verdict: APPROVED

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6041333600 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/851#pullrequestreview-6041333600). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T14:42:22Z. **Review:** APPROVED --- ### Clean-Room Audit & Architectural Review — PR #851 (`OLD-4578` Native Launcher) Tremendous work on restoring the iced native launcher! #### Technical Verification & Security Audit 1. **Clean-Room & Legal Conformance**: - Repository-wide `scripts/check_no_game_data.py` scan across all 70 files: **0 violations**. - Zero game assets or proprietary binaries. Bundled fonts (`Chakra Petch`, `IBM Plex Sans`, `JetBrains Mono`) are verified open-source under SIL Open Font License v1.1 (`OFL-1.1`) with SHA-256 checksums in `launcher/fonts/SHA256SUMS`. - Strictly clean branding using repository's own `assets/logo.png`. 2. **Security & Offline Hermeticity**: - `[lints.rust] unsafe_code = "forbid"` enforced. - Evaluated entire dependency tree in `Cargo.lock`: **Zero networking / telemetry crates** (no `reqwest`, `hyper`, `tokio::net`, or socket usage). Completely offline. - Child process lifecycle and tree cancellation (`taskkill /T` on Windows / process groups on Unix) thoroughly verified in `launcher/src/process.rs` and `tests/cancel.rs`. 3. **CI & Integration**: - `.github/workflows/launcher.yml` path filters are tightly scoped to `launcher/**`. - `tests/test_docs_cli_flags.py` passes all 4 tests. - Re-evaluated 3-way merge against upstream `main`: **0 merge conflicts**. **Verdict: APPROVED**
abnalstlll-byte commented 2026-11-24 14:44:51 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T14:44:51Z.

Review: APPROVED


Audited and verified. Restores upstream PR 4578 providing an optional, native desktop launcher in Rust/iced under launcher/. Clean-room compliant with zero game data or proprietary assets, SIL OFL-1.1 fonts with verified checksums, unsafe_code = 'forbid', zero network capabilities in dependency tree, robust process group tree cancellation ( askkill /T), and isolated CI workflow. Approved.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6041383408 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/851#pullrequestreview-6041383408). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T14:44:51Z. **Review:** APPROVED --- Audited and verified. Restores upstream PR 4578 providing an optional, native desktop launcher in Rust/iced under launcher/. Clean-room compliant with zero game data or proprietary assets, SIL OFL-1.1 fonts with verified checksums, unsafe_code = 'forbid', zero network capabilities in dependency tree, robust process group tree cancellation ( askkill /T), and isolated CI workflow. Approved.
TheGeogeo commented 2026-11-28 22:18:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-28T22:18:52Z.


Is it still useful on current main (aa918e5d9)? Diff reading only, no build.

  • main now has its own launcher, with a different design: launcher/index.html plus launcher/serve.py, a local HTML page started by Launcher.bat (play, settings, mods, tools).
  • This PR adds a second, native Rust/iced launcher in the same launcher/ folder: about 26,000 lines, plus 3 fonts with their OFL licences. No file overlaps, but the two would share one folder.
  • It is 4167 commits behind main, labeled needs rebase, and conflicts in tests/test_docs_cli_flags.py.

Suggest closing it unless the maintainers want a native launcher next to the HTML one. In that case it needs a rebase and a folder of its own.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246648373 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/851#issuecomment-7246648373). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-28T22:18:52Z. --- Is it still useful on current `main` (`aa918e5d9`)? Diff reading only, no build. - `main` now has its own launcher, with a different design: `launcher/index.html` plus `launcher/serve.py`, a local HTML page started by `Launcher.bat` (play, settings, mods, tools). - This PR adds a second, native Rust/iced launcher in the same `launcher/` folder: about 26,000 lines, plus 3 fonts with their OFL licences. No file overlaps, but the two would share one folder. - It is 4167 commits behind `main`, labeled `needs rebase`, and conflicts in `tests/test_docs_cli_flags.py`. Suggest closing it unless the maintainers want a native launcher next to the HTML one. In that case it needs a rebase and a folder of its own. AI-assisted (Claude Code).
aslan2142 commented 2026-11-29 16:52:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-29T16:52:10Z.


Rebased onto latest main (0bc6e21a1), moved the native Rust/iced launcher under launcher/native/ so main's HTML launcher (launcher/index.html, launcher/serve.py, Launcher.bat) stays untouched, isolated its config file as native-launcher.json (avoiding collision with launcher.json), and updated paths and .github/workflows/launcher.yml.

Verified:

  • cargo fmt --check, cargo clippy --all-targets -- -D warnings (0 warnings), cargo test --offline --locked (179 passed, 0 failed)
  • scripts/check_no_game_data.py (exit 0), test_docs_cli_flags.py, test_docs_repo_paths.py, test_docs_env_vars.py, test_docs_links.py, test_launcher_serve.py, test_leonida_launcher.py (all PASS)

AI-assisted (Antigravity — Gemini 4 Neon).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7259239244 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/851#issuecomment-7259239244). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-29T16:52:10Z. --- Rebased onto latest `main` (`0bc6e21a1`), moved the native Rust/iced launcher under `launcher/native/` so `main`'s HTML launcher (`launcher/index.html`, `launcher/serve.py`, `Launcher.bat`) stays untouched, isolated its config file as `native-launcher.json` (avoiding collision with `launcher.json`), and updated paths and `.github/workflows/launcher.yml`. Verified: - `cargo fmt --check`, `cargo clippy --all-targets -- -D warnings` (0 warnings), `cargo test --offline --locked` (179 passed, 0 failed) - `scripts/check_no_game_data.py` (exit 0), `test_docs_cli_flags.py`, `test_docs_repo_paths.py`, `test_docs_env_vars.py`, `test_docs_links.py`, `test_launcher_serve.py`, `test_leonida_launcher.py` (all PASS) AI-assisted (Antigravity — Gemini 4 Neon).
Diegobecker07 commented 2026-11-29 18:39:00 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Diegobecker07 on 2026-11-29T18:39:00Z.


A first run on a real Windows machine, since the README says it has only been checked with cargo check --target x86_64-pc-windows-gnu. Setup: Windows 11 Pro 26300 (Portuguese), one 2560x1440 display at 100 % scaling, RTX 5070 Ti (driver 621.40), Rust 1.98.1 with the x86_64-pc-windows-msvc toolchain, main 4364a4fa6. The package already had a built port in its output folder, from an earlier make_game run.

Works (MEASURED, by hand unless said otherwise)

  • cargo build --release --locked: 3 min 28 s, no warnings. cargo test --locked: 175 passed, 0 failed, 4 ignored (148 unit tests, the eight files under tests/, and the doc tests).
  • The window: double-click on the header bar maximizes and restores it, the X closes it, and below 640 px the sidebar folds and a back button appears. The light/dark pill and Ctrl+L switch the shade (I sent Ctrl+L with SendKeys). Ctrl+PageDown, Tab with a visible focus ring, and Up/Down in the sidebar all work.
  • Settings are saved to %APPDATA%\Leonida\native-launcher.json and restored on the next start. Browse opens the native folder picker in the package folder, and Esc cancels it cleanly.
  • Build with every stage off runs make_game.py ... --stages check, which passes (1.0.2.1, 108 files).
  • Cancel during a Build leaves no make_game.py, rpf9dump, build_runtime.ps1 or CMake process behind.
  • Play runs D:\Leonida\gta6rt.exe --run E:\GTA\game_scarlett_master.exe --game-dir E:\GTA with LEONIDA_D3D12=vulkan, as a child of the launcher, and shows its log live. Cancel ends it.

Bugs

  1. The Check button is never shown when Play is the primary action. state::secondary() returns Build and Check, but only Play and Build appear, even with the window maximized. READ IN CODE: the actions are a plain Row (src/app.rs:824, no .wrap()) in a text column of at most 420 px (COLUMN_CONTENT, src/app.rs:188), and each large button is at least 200 px (LARGE_LEAST, src/ui/button.rs:51), so the third button is clipped. The screenshot tests use a state with two buttons.
  2. A Build's check is never recorded, so "Game copy: not checked yet" stays. Only a Kind::Check run sets settings.checked (src/app.rs, around line 631). After a --stages check Build that passed, the settings file still has "checked": null. Together with bug 1, a built port never shows its game version.
  3. The progress bar runs ahead. make_game overlaps its stages, and progress() (src/output.rs) takes the latest stage that has printed anything over the planned stages. 40 s into a full build, with shaders just started, runtime's first lines put the bar at 3 of 5 (60 %), and "Stage N of 5" is ahead in the same way.
  4. The cancelled message always mentions a build. src/state.rs:229 appends "A build continues where it left off next time." to every cancel; after cancelling Play it read "Play was cancelled. A build continues where it left off next time."

Notes

  • On a Ready page, Build sits next to Play and runs all four stages, Assets included (hundreds of GB, hours), on one click with no confirmation. That happened here by accident; Cancel caught it after 2.5 GB of assets.
  • A build started from the launcher writes no <work>/logs/<stage>.log, because make_game writes them only under its own board (#1378 adds them for runs without it). The output panel is the only record.
  • With the Writes folder empty, Play wrote <package>\overlay (2 MB) into the game copy. That is documented, but the package is otherwise only read.
  • Windows UI Automation sees the whole window as a single element (WindowControl 'Leonida'), so screen readers can't reach its controls.

Not tried: Windows 10, a full Build to the end, the error paths (a missing or wrong package), and a second monitor.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7260649219 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/851#issuecomment-7260649219). Originally posted by [Diegobecker07](https://github.com/Diegobecker07) on 2026-11-29T18:39:00Z. --- A first run on a real Windows machine, since the README says it has only been checked with `cargo check --target x86_64-pc-windows-gnu`. Setup: Windows 11 Pro 26300 (Portuguese), one 2560x1440 display at 100 % scaling, RTX 5070 Ti (driver 621.40), Rust 1.98.1 with the `x86_64-pc-windows-msvc` toolchain, `main` 4364a4fa6. The package already had a built port in its output folder, from an earlier make_game run. **Works (MEASURED, by hand unless said otherwise)** - `cargo build --release --locked`: 3 min 28 s, no warnings. `cargo test --locked`: 175 passed, 0 failed, 4 ignored (148 unit tests, the eight files under `tests/`, and the doc tests). - The window: double-click on the header bar maximizes and restores it, the X closes it, and below 640 px the sidebar folds and a back button appears. The light/dark pill and Ctrl+L switch the shade (I sent Ctrl+L with `SendKeys`). Ctrl+PageDown, Tab with a visible focus ring, and Up/Down in the sidebar all work. - Settings are saved to `%APPDATA%\Leonida\native-launcher.json` and restored on the next start. Browse opens the native folder picker in the package folder, and Esc cancels it cleanly. - Build with every stage off runs `make_game.py ... --stages check`, which passes (1.0.2.1, 108 files). - **Cancel during a Build** leaves no `make_game.py`, `rpf9dump`, `build_runtime.ps1` or CMake process behind. - Play runs `D:\Leonida\gta6rt.exe --run E:\GTA\game_scarlett_master.exe --game-dir E:\GTA` with `LEONIDA_D3D12=vulkan`, as a child of the launcher, and shows its log live. Cancel ends it. **Bugs** 1. **The Check button is never shown when Play is the primary action.** `state::secondary()` returns Build and Check, but only Play and Build appear, even with the window maximized. READ IN CODE: the actions are a plain `Row` (`src/app.rs:824`, no `.wrap()`) in a text column of at most 420 px (`COLUMN_CONTENT`, `src/app.rs:188`), and each large button is at least 200 px (`LARGE_LEAST`, `src/ui/button.rs:51`), so the third button is clipped. The screenshot tests use a state with two buttons. 2. **A Build's check is never recorded, so "Game copy: not checked yet" stays.** Only a `Kind::Check` run sets `settings.checked` (`src/app.rs`, around line 631). After a `--stages check` Build that passed, the settings file still has `"checked": null`. Together with bug 1, a built port never shows its game version. 3. **The progress bar runs ahead.** make_game overlaps its stages, and `progress()` (`src/output.rs`) takes the latest stage that has printed anything over the planned stages. 40 s into a full build, with shaders just started, runtime's first lines put the bar at 3 of 5 (60 %), and "Stage N of 5" is ahead in the same way. 4. **The cancelled message always mentions a build.** `src/state.rs:229` appends "A build continues where it left off next time." to every cancel; after cancelling Play it read "Play was cancelled. A build continues where it left off next time." **Notes** - On a Ready page, Build sits next to Play and runs all four stages, Assets included (hundreds of GB, hours), on one click with no confirmation. That happened here by accident; Cancel caught it after 2.5 GB of assets. - A build started from the launcher writes no `<work>/logs/<stage>.log`, because make_game writes them only under its own board (#1378 adds them for runs without it). The output panel is the only record. - With the Writes folder empty, Play wrote `<package>\overlay` (2 MB) into the game copy. That is documented, but the package is otherwise only read. - Windows UI Automation sees the whole window as a single element (`WindowControl 'Leonida'`), so screen readers can't reach its controls. Not tried: Windows 10, a full Build to the end, the error paths (a missing or wrong package), and a second monitor. AI-assisted.
Diegobecker07 commented 2026-11-29 18:46:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Diegobecker07 on 2026-11-29T18:46:35Z.


Correction to my comment above: the opening sentence, "A first run on a real Windows machine", is wrong. About an hour earlier, ecox982745 had already verified the build, cargo test and an empty launcher with three renderers on an RTX 4090 (VERIFY-NATIVE-LAUNCHER-WIN in #2570), with the same 175 passed and 4 ignored. My run adds a built port: Play, Build and Cancel, and the four bugs.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7260748793 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/851#issuecomment-7260748793). Originally posted by [Diegobecker07](https://github.com/Diegobecker07) on 2026-11-29T18:46:35Z. --- Correction to my comment above: the opening sentence, "A first run on a real Windows machine", is wrong. About an hour earlier, ecox982745 had already verified the build, `cargo test` and an empty launcher with three renderers on an RTX 4090 (VERIFY-NATIVE-LAUNCHER-WIN in #2570), with the same 175 passed and 4 ignored. My run adds a built port: Play, Build and Cancel, and the four bugs. AI-assisted.
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!851
No description provided.