mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #851] launcher: an optional native launcher (Rust, iced) to check, build and start the port #889
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#889
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/851
Author: @aslan2142
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:launcher-ui📝 Commits (10+)
9811e94launcher: a design system in the logo's colours, on stock iced 0.1406e5138launcher: settings, command lines, output parser and state machineb3abdd1launcher: glows that fade, a gradual pill, the brand centred4f8178clauncher: the Play page's scene, generated from the theme39945e0launcher: the window, its five pages, and the scene cached1eeb7b1launcher: keyboard, scene-cache and screenshot tests, README8b738a3launcher: the scene at launch, fading in; longer glows; an orange chipb28ac7alauncher: a smooth veil over the scene, stretched to the page9ba6d0clauncher: one corner radius for buttons and fields; every glow on one timing26021f7launcher: name the Game files page in the status line; every page drawn📊 Changes
70 files changed (+26493 additions, -2 deletions)
View changed files
➕
.github/workflows/launcher.yml(+59 -0)➕
launcher/.gitignore(+1 -0)➕
launcher/Cargo.lock(+5264 -0)➕
launcher/Cargo.toml(+56 -0)➕
launcher/README.md(+188 -0)➕
launcher/fonts/ChakraPetch-Bold.ttf(+0 -0)➕
launcher/fonts/ChakraPetch-OFL.txt(+93 -0)➕
launcher/fonts/ChakraPetch-SemiBold.ttf(+0 -0)➕
launcher/fonts/IBMPlexSans-OFL.txt(+93 -0)➕
launcher/fonts/IBMPlexSans-Regular.ttf(+0 -0)➕
launcher/fonts/JetBrainsMono-OFL.txt(+93 -0)➕
launcher/fonts/JetBrainsMono-Regular.ttf(+0 -0)➕
launcher/fonts/SHA256SUMS(+4 -0)➕
launcher/src/app.rs(+1169 -0)➕
launcher/src/backdrop.rs(+381 -0)➕
launcher/src/commands.rs(+533 -0)➕
launcher/src/config.rs(+346 -0)➕
launcher/src/lib.rs(+19 -0)➕
launcher/src/main.rs(+69 -0)➕
launcher/src/output.rs(+460 -0)...and 50 more files
📄 Description
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).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.