mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1233] make_game: gta6rt.sh resolves a relative WINE before changing to the game folder (OLD-10028) #1267
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#1267
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/1233
Author: @IlyassRS3
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-10028-wine-relative-path📝 Commits (2)
4a056a6make_game: gta6rt.sh resolves a relative WINE before changing to the game folderbb2cd5atest_make_game_platform: compare realpath for relative WINE check on macOS📊 Changes
2 files changed (+14 additions, -0 deletions)
View changed files
📝
make_game.py(+5 -0)📝
tests/test_make_game_platform.py(+9 -0)📄 Description
What changed
Carries forward
old-pr/10028(draft #296, original commit by @SkippySteve) rebased cleanly onto currentmain(2e026b03e), preserving the original author commit and adapting the new assertion formain's macOS physical-path comparison:@SkippySteve):make_game.py(wine_launcher): beforecd "${game%.}", anchor any relativeWINEpath containing/(case ${WINE-} in /*) ;; */*) WINE=$PWD/$WINE ;; esac) against the caller's$PWD, leaving absolute paths and barePATHnames (e.g.wine) unchanged.tests/test_make_game_platform.py: exercise a relativeWINE="Proton 9.0/files/bin/wine"symlink from the caller's working directory.IlyassRS3):tests/test_make_game_platform.py: comparereal(self.game)andreal(self.out)in the new assertion (matchingmain'sreal(...)helper in the same test) so the test also passes whenTMPDIRis under a symlinked path such as macOS's/var/folders -> /private/var/folders.Item ID
OLD-10028(carries forwardold-pr/10028/ draft #296, #17)Verification
Tested on macOS 27.2.1 (Apple M5 arm64), Python 3.14 (no game files, no GPU, standard library only):
TMPDIR=/var/tmp python3 -I tests/test_make_game_platform.py -v-> 46/46 OK (note: without thereal(...)follow-up commit,TMPDIR=/var/tmpfailed because/var/tmpresolves to/private/var/tmp)python3 -I tests/test_make_game_platform.py-> 46/46 OKmake_game.pytoupstream/mainwhile keepingtests/test_make_game_platform.py) -> FAILED (errors=1) withgta6rt.sh: ... /game/Proton 9.0/files/bin/wine: No such file or directory(exit 126); restoring the fix returns to 46/46 OK.python3 -m compileall -q make_game.py tests/test_make_game_platform.py-> OKpython3 -I scripts/check_no_game_data.py make_game.py tests/test_make_game_platform.py-> OKpython3 -I tests/test_ci_registration.py-> 15/15 OKpython3 -I tests/test_text_write_line_endings.py-> 3/3 OKChecklist
TMPDIRassertion, and regression-verified with AI assistance; original commit by @SkippySteve preserved)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.