Repository navigation
Conversation
…6.ps1 build-launcher.ps1 builds Leonida-Launcher.exe, a Windows Forms window that lists the repository's branches, switches to the chosen one (fetch + checkout -f -B, after a warning if tracked files were changed) and starts run-gta6.ps1, with the game folder passed as -GameDir when one is set. Settings live in %APPDATA%\LeonidaLauncher\config.json. The repository stays text only: the launcher's code is in the script, and the project's logo is downloaded at build time (from a fixed commit) into a temporary copy of that code; the .exe icon is made from it in a temporary file. Without network a logo drawn by the code is used. The .exe lands at the root, where git already ignores it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Adds
build-launcher.ps1at the root. It buildsLeonida-Launcher.exe, a small window that lists the repository's branches, switches to the chosen one (git fetch+git checkout -f -B, after a warning if tracked files were changed) and startsrun-gta6.ps1, with the game folder passed as-GameDirwhen one is set. No TODO row (closest: U-1). The README gets the one command to run.The repository stays text only: the launcher's code lives in the script, the logo is downloaded at build time from the fixed-commit address the README already uses (a drawn logo is used without network), and the
.exeand its icon are made in temporary files. OnlyLeonida-Launcher.exeis written to the repository, and.gitignorealready ignores*.exe. This replaces my earlier PR that committed a prebuilt.exe.How it was tested
run-gta6.ps1were checked on a test repository with a stubbed UI. Building the.exeand the window on Windows: built and started on Windows 11, window and icon OK.Checks run on this branch:
cargo test --workspace --locked: no Rust changecargo clippy --workspace --all-targets --locked -- -D warnings: no Rust changecargo clippy --workspace --all-targets --all-features --locked -- -D warnings: no Rust changecargo xtask policy: not run; the new file only uses an allowed extension, is 31 KB, and its longest alphanumeric run is 74 charactersAI