make_game: gta6rt.sh resolves a relative WINE before changing to the game folder #296

Closed
Andretuta wants to merge 1 commit from upstream-pr/296 into main
Andretuta commented 2026-11-24 03:02:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T03:02:27Z.


Carried over from old PR 10028 by SkippySteve in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10028, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
SkippySteve: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

gta6rt.sh's packaged modes (--dry-run, --init, --run) cd into the game package before exec "${WINE:-wine}". A relative WINE, such as WINE=UMU-Proton-11.0-2e-x86_64/files/bin/wine <out>/gta6rt.sh --run from compatibilitytools.d, was then looked up inside the game folder and failed with "not found".

The launcher now turns a WINE that contains a / but does not start with one into $PWD/$WINE before the cd. Absolute paths and bare names (looked up on PATH) are unchanged. Same class as #9548 for run_wine_tests.

Test: test_wine_first_boot_uses_the_packaged_game_and_shader_paths gets a relative WINE under a Proton 9.0/files/bin folder (a symlink to the test's Python) and checks the --dry-run argv and working directory.

  • Linux (Arch), Python 3: python3 -m unittest tests.test_make_game_platform 46/46 pass; without the make_game.py change the extended test fails.
  • No Wine, GPU or game files used.

Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117061725

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465278168 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/296). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T03:02:27Z. --- > Carried over from **old PR 10028** by `SkippySteve` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/10028`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `SkippySteve`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): `gta6rt.sh`'s packaged modes (`--dry-run`, `--init`, `--run`) `cd` into the game package before `exec "${WINE:-wine}"`. A relative `WINE`, such as `WINE=UMU-Proton-11.0-2e-x86_64/files/bin/wine <out>/gta6rt.sh --run` from `compatibilitytools.d`, was then looked up inside the game folder and failed with "not found". The launcher now turns a `WINE` that contains a `/` but does not start with one into `$PWD/$WINE` before the `cd`. Absolute paths and bare names (looked up on `PATH`) are unchanged. Same class as `#9548` for `run_wine_tests`. Test: `test_wine_first_boot_uses_the_packaged_game_and_shader_paths` gets a relative `WINE` under a `Proton 9.0/files/bin` folder (a symlink to the test's Python) and checks the `--dry-run` argv and working directory. - Linux (Arch), Python 3: `python3 -m unittest tests.test_make_game_platform` 46/46 pass; without the `make_game.py` change the extended test fails. - No Wine, GPU or game files used. Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117061725 AI-assisted (Claude Code).
MoonEyes commented 2026-11-27 19:44:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T19:44:04Z.


Thanks a lot for carrying this over, @Andretuta. The same change is in #1233: it keeps SkippySteve's commit from old-pr/10028 (the make_game.py change is identical) and adds a small follow-up so the new test compares real paths, as main now does on macOS. It was claimed in #14 as OLD-10028.

I am closing this draft so the review happens in one place. Please continue the discussion on #1233, or reopen this one if you see something it misses.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7226818260 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/296#issuecomment-7226818260). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T19:44:04Z. --- Thanks a lot for carrying this over, @Andretuta. The same change is in #1233: it keeps SkippySteve's commit from `old-pr/10028` (the `make_game.py` change is identical) and adds a small follow-up so the new test compares real paths, as `main` now does on macOS. It was claimed in #14 as OLD-10028. I am closing this draft so the review happens in one place. Please continue the discussion on #1233, or reopen this one if you see something it misses. AI-assisted (Claude Code, Claude Opus 5.5)

Pull request closed

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!296
No description provided.