launcher: an optional native launcher (Rust, iced) to check, build and start the port #851
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/851"
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 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 atd0da7dade8. The rebase changed one thing in code: intests/test_docs_cli_flags.py, the launcher's three cargo flags join main's newerFOREIGNset, 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.ymlare 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 withmake_game.py, and starts the loader the waydocs/boot.md§2 describes. Outsidelauncher/it adds only two things:.github/workflows/launcher.yml;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.
A narrow window folds the sidebar away:
Why this launcher
make_game.pystill needs Python, as it does today.make_game.pydoes that, as it does on the command line.LEONIDA_REDUCE_MOTION=1turns animation off.launcher/, apart from its CI workflow and the docs flag check.What it does
make_game.py --game <package> --check.make_game.py --game <package> --out <output> [--work <work>]with the chosen options.gta6rt --run <exe> --game-dir <package>withLEONIDA_D3D12=vulkan. On Linux it goes throughgta6rt.sh.@@stage,@@progressand@@errorlines, in casemake_game.pyprints them one day.--game,--out,--work,--full-check.--stages,--wav.LEONIDA_VK_DEVICE,LEONIDA_VK_VALIDATION,--wave64-emulate,--jobs.--trace-d3d12,--overlay,LEONIDA_UNIMPLEMENTED.LEONIDA_WINDOW_FRAME=0gives a plain window). On Windows it uses Windows 11's own corners instead.launcher/tests/cancel.rs).Planned for later versions
llvm-mc);--no-float-controls,--bary-fallback,--texel-offset-fallback,--f16-interp-fallback,--mesh-compute,--pc-tail-ubo);--runtime-build.--trace,tools/boot_trace.py).Relation to old upstream PR 3558 (BUILD-1041)
make_game.py. It also downloaded the build tools and updated the checkout with git.Reviews on the old repository
These checks were made on the old repository, before it went private:
launcher/tests/cancel.rswas added for that. Removing the fix's lines makes it fail.clippyandfmtclean.For the maintainer to decide
CONTRIBUTING.mdcovers Python only.Cargo.lock..github/workflows/launcher.yml, on Windows and Ubuntu.cargo fmt --check,cargo clippyandcargo test.launcher/**,assets/logo.pngor the workflow itself changes.Tested
Linux 7.3.5, Rust 1.100.0, on the rebased branch. Nothing opened a window:
DISPLAYandWAYLAND_DISPLAYwere unset, and every page was drawn offscreen on the CPU (tiny-skia).cargo test --locked: everything passes.make_game.py;cargo clippy --locked --all-targets -- -D warningsandcargo fmt --checkare clean;cargo build --release --lockedsucceeds.launcher/fonts/SHA256SUMSmatches all four font files.tests/test_docs_*.pypass, includingtest_docs_cli_flags.py;actionlint1.7.7 is clean on.github/workflows/launcher.yml;python -I scripts/check_no_game_data.pypasses on every changed file.git diff --checkflags 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.clippywas clean forx86_64-pc-windows-gnutoo.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
mainand merges cleanly (a conflicting pull request is labeledneeds rebase). It merges cleanly with main atd0da7dade; #659 edits the sameFOREIGNlines.assets/logo.pngand four OFL fonts.docs/design.md, with how it was confirmed. (No translator change.)AI-assisted (Claude Code, Claude Opus 5.5).
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-4578Native Launcher)Tremendous work on restoring the iced native launcher!
Technical Verification & Security Audit
scripts/check_no_game_data.pyscan across all 70 files: 0 violations.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 inlauncher/fonts/SHA256SUMS.assets/logo.png.[lints.rust] unsafe_code = "forbid"enforced.Cargo.lock: Zero networking / telemetry crates (noreqwest,hyper,tokio::net, or socket usage). Completely offline.taskkill /Ton Windows / process groups on Unix) thoroughly verified inlauncher/src/process.rsandtests/cancel.rs..github/workflows/launcher.ymlpath filters are tightly scoped tolauncher/**.tests/test_docs_cli_flags.pypasses all 4 tests.main: 0 merge conflicts.Verdict: APPROVED
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.
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.mainnow has its own launcher, with a different design:launcher/index.htmlpluslauncher/serve.py, a local HTML page started byLauncher.bat(play, settings, mods, tools).launcher/folder: about 26,000 lines, plus 3 fonts with their OFL licences. No file overlaps, but the two would share one folder.main, labeledneeds rebase, and conflicts intests/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).
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 underlauncher/native/somain's HTML launcher (launcher/index.html,launcher/serve.py,Launcher.bat) stays untouched, isolated its config file asnative-launcher.json(avoiding collision withlauncher.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).
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 thex86_64-pc-windows-msvctoolchain,main4364a4fa6. 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 undertests/, and the doc tests).SendKeys). Ctrl+PageDown, Tab with a visible focus ring, and Up/Down in the sidebar all work.%APPDATA%\Leonida\native-launcher.jsonand restored on the next start. Browse opens the native folder picker in the package folder, and Esc cancels it cleanly.make_game.py ... --stages check, which passes (1.0.2.1, 108 files).make_game.py,rpf9dump,build_runtime.ps1or CMake process behind.D:\Leonida\gta6rt.exe --run E:\GTA\game_scarlett_master.exe --game-dir E:\GTAwithLEONIDA_D3D12=vulkan, as a child of the launcher, and shows its log live. Cancel ends it.Bugs
state::secondary()returns Build and Check, but only Play and Build appear, even with the window maximized. READ IN CODE: the actions are a plainRow(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.Kind::Checkrun setssettings.checked(src/app.rs, around line 631). After a--stages checkBuild that passed, the settings file still has"checked": null. Together with bug 1, a built port never shows its game version.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.src/state.rs:229appends "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
<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.<package>\overlay(2 MB) into the game copy. That is documented, but the package is otherwise only read.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.
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 testand 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.