[PR #1548] Add a native desktop launcher #1577

Open
opened 2026-11-26 20:21:44 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1548
Author: @ytsodacan
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: desktop-builder


📝 Commits (2)

  • 7aa50cb Add a native desktop launcher (Rust, egui) with an application icon
  • 61fbeb0 Embed the icon in cross-built Windows exes, and tick only the steps running the port needs

📊 Changes

15 files changed (+6321 additions, -0 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 README.md (+2 -0)
➕ assets/logo.ico (+0 -0)
➕ builder/.gitignore (+1 -0)
➕ builder/Cargo.lock (+4336 -0)
➕ builder/Cargo.toml (+32 -0)
➕ builder/build.rs (+14 -0)
➕ builder/fonts/Inter-Bold.ttf (+0 -0)
➕ builder/fonts/Inter-LICENSE.txt (+92 -0)
➕ builder/fonts/Inter-Regular.ttf (+0 -0)
➕ builder/fonts/Inter-SemiBold.ttf (+0 -0)
➕ builder/src/backend.rs (+326 -0)
➕ builder/src/home.rs (+312 -0)
➕ builder/src/main.rs (+859 -0)
➕ builder/src/play.rs (+346 -0)

📄 Description

What and why

A native desktop launcher in builder/ (Rust, egui): it builds the port with make_game.py --no-tui, manages mods and starts the result. It replaces #1536.

It covers the same ground as #851, the native launcher by aslan2142. Happy to close it, or move parts over, if you'd rather have one launcher.

Play Not built yet
Play Not built yet
Mods Settings
Mods Settings
Build Building
Build Building
After the game closes Game log
Closed Game log

Every path, mod and time in the screenshots is made up.

  • Play: starts the port as docs/boot.md describes (gta6rt.exe --run, or gta6rt.sh --run through Wine) with the overlay and mods folders, and says the port isn't playable yet. Stop ends the whole process tree. Output goes to a log file, so the game carries on when the launcher closes.
  • Mods: lists, adds and switches mods through tools/leonida_mods.py.
  • Build: finds your copy with make_game.py --find; output folder, jobs, steps, live progress and log. Only the steps running the port needs start ticked (about 30 GB).
  • Settings: keyboard as a controller, splash screen, graphics diagnostics, Wine command.
  • Application icon: build.rs embeds assets/logo.ico (16 to 256 px) in the Windows exe, cross-builds included; cargo bundle metadata covers a macOS .app.

The layout follows the Hookshot builder; the code is new. Bundles the Inter font (SIL OFL 1.1, license included). .gitignore gets an exception for assets/logo.ico.

Tested

On macOS: release build, cargo test (10 tests: log parsing, starting and stopping a stand-in port, Cancel, settings, and the repository's own mod manager), and the screens above. The docs tests and check_no_game_data.py pass.

For the cross-build icon, build.rs was run with the MSVC target variables and llvm-rc: the resource file holds the icon group and its images. tiguan26 ran 7aa50cb67 on Linux and cross-linked it for Windows (see the comment below).

Not tested: starting the real port, a full build with game files, running on Windows.

GPUs tested: n/a

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1548 **Author:** [@ytsodacan](https://github.com/ytsodacan) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `desktop-builder` --- ### 📝 Commits (2) - [`7aa50cb`](https://github.com/ubiquitarianism/leonida/commit/7aa50cb67f12f50c232522397819a77b2a1e1395) Add a native desktop launcher (Rust, egui) with an application icon - [`61fbeb0`](https://github.com/ubiquitarianism/leonida/commit/61fbeb0629bb99a6920d831e04c8e15957d61ba3) Embed the icon in cross-built Windows exes, and tick only the steps running the port needs ### 📊 Changes **15 files changed** (+6321 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `README.md` (+2 -0) ➕ `assets/logo.ico` (+0 -0) ➕ `builder/.gitignore` (+1 -0) ➕ `builder/Cargo.lock` (+4336 -0) ➕ `builder/Cargo.toml` (+32 -0) ➕ `builder/build.rs` (+14 -0) ➕ `builder/fonts/Inter-Bold.ttf` (+0 -0) ➕ `builder/fonts/Inter-LICENSE.txt` (+92 -0) ➕ `builder/fonts/Inter-Regular.ttf` (+0 -0) ➕ `builder/fonts/Inter-SemiBold.ttf` (+0 -0) ➕ `builder/src/backend.rs` (+326 -0) ➕ `builder/src/home.rs` (+312 -0) ➕ `builder/src/main.rs` (+859 -0) ➕ `builder/src/play.rs` (+346 -0) </details> ### 📄 Description ### What and why A native desktop launcher in `builder/` (Rust, egui): it builds the port with `make_game.py --no-tui`, manages mods and starts the result. It replaces #1536. It covers the same ground as #851, the native launcher by aslan2142. Happy to close it, or move parts over, if you'd rather have one launcher. | Play | Not built yet | |---|---| | ![Play](https://raw.githubusercontent.com/ytsodacan/leonida/d1e64596e6afd6b076c46ae52224998e4a556076/launcher-1-play.png) | ![Not built yet](https://raw.githubusercontent.com/ytsodacan/leonida/d1e64596e6afd6b076c46ae52224998e4a556076/launcher-0-not-built.png) | | Mods | Settings | |---|---| | ![Mods](https://raw.githubusercontent.com/ytsodacan/leonida/d1e64596e6afd6b076c46ae52224998e4a556076/launcher-3-mods.png) | ![Settings](https://raw.githubusercontent.com/ytsodacan/leonida/d1e64596e6afd6b076c46ae52224998e4a556076/launcher-6-settings.png) | | Build | Building | |---|---| | ![Build](https://raw.githubusercontent.com/ytsodacan/leonida/386f826019fe99d527db41c8451939d90935b42b/launcher-4-build-v2.png) | ![Building](https://raw.githubusercontent.com/ytsodacan/leonida/d1e64596e6afd6b076c46ae52224998e4a556076/launcher-5-building.png) | | After the game closes | Game log | |---|---| | ![Closed](https://raw.githubusercontent.com/ytsodacan/leonida/d1e64596e6afd6b076c46ae52224998e4a556076/launcher-2-closed.png) | ![Game log](https://raw.githubusercontent.com/ytsodacan/leonida/d1e64596e6afd6b076c46ae52224998e4a556076/launcher-7-log.png) | Every path, mod and time in the screenshots is made up. - **Play:** starts the port as docs/boot.md describes (`gta6rt.exe --run`, or `gta6rt.sh --run` through Wine) with the overlay and mods folders, and says the port isn't playable yet. Stop ends the whole process tree. Output goes to a log file, so the game carries on when the launcher closes. - **Mods:** lists, adds and switches mods through `tools/leonida_mods.py`. - **Build:** finds your copy with `make_game.py --find`; output folder, jobs, steps, live progress and log. Only the steps running the port needs start ticked (about 30 GB). - **Settings:** keyboard as a controller, splash screen, graphics diagnostics, Wine command. - **Application icon:** `build.rs` embeds `assets/logo.ico` (16 to 256 px) in the Windows exe, cross-builds included; `cargo bundle` metadata covers a macOS .app. The layout follows the [Hookshot](https://github.com/ItsNotRexed/Hookshot) builder; the code is new. Bundles the Inter font (SIL OFL 1.1, license included). `.gitignore` gets an exception for `assets/logo.ico`. ### Tested On macOS: release build, `cargo test` (10 tests: log parsing, starting and stopping a stand-in port, Cancel, settings, and the repository's own mod manager), and the screens above. The docs tests and `check_no_game_data.py` pass. For the cross-build icon, `build.rs` was run with the MSVC target variables and llvm-rc: the resource file holds the icon group and its images. tiguan26 ran 7aa50cb67 on Linux and cross-linked it for Windows (see the comment below). Not tested: starting the real port, a full build with game files, running on Windows. GPUs tested: n/a ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#1577
No description provided.