make_game: resolve a relative WINE before entering the game folder #2209

Closed
leonida/mandy
whoalin1 wants to merge 0 commits from wine-relative-launcher into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

whoalin1 commented 2026-11-26 06:14:12 +00:00

Summary

  • resolve a relative WINE path against the caller's directory before the generated launcher changes into the game folder
  • keep absolute paths and plain command names unchanged
  • extend the synthetic POSIX launcher regression with a Proton-style Proton 9.0/files/bin/wine path

Item: MAKE-GAME-WINE-RELATIVE-PATH

This carries forward the still-uncarried fix in old-pr/10028, originally written by SkippySteve, reapplied and verified on current main.

Tests

Under the local machine coordination lock, in WSL Ubuntu with Python 3.14.4:

  • control: the new regression fails on the unpatched launcher with exit 127
  • fixed: python3 -I tests/test_make_game_platform.py RuntimePackagingTest.test_wine_first_boot_uses_the_packaged_game_and_shader_paths — pass
  • python -m compileall -q make_game.py tests/test_make_game_platform.py — pass
  • git diff --check — pass

No game files or GPU.

AI-assisted with Devin.

## Summary - resolve a relative `WINE` path against the caller's directory before the generated launcher changes into the game folder - keep absolute paths and plain command names unchanged - extend the synthetic POSIX launcher regression with a Proton-style `Proton 9.0/files/bin/wine` path Item: MAKE-GAME-WINE-RELATIVE-PATH This carries forward the still-uncarried fix in old-pr/10028, originally written by SkippySteve, reapplied and verified on current main. ## Tests Under the local machine coordination lock, in WSL Ubuntu with Python 3.14.4: - control: the new regression fails on the unpatched launcher with exit 127 - fixed: `python3 -I tests/test_make_game_platform.py RuntimePackagingTest.test_wine_first_boot_uses_the_packaged_game_and_shader_paths` — pass - `python -m compileall -q make_game.py tests/test_make_game_platform.py` — pass - `git diff --check` — pass No game files or GPU. AI-assisted with Devin.
real-rusher commented 2026-11-26 10:12:23 +00:00

Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU, no Wine). Merges cleanly, also together with #2217 and #2208 (all three touch make_game.py); tests/test_make_game_platform.py still passes with all three merged. With this PR alone: 46 tests OK. The PR's test file against main's make_game.py: 1 error, so the new test fails on main and passes with the fix. compileall clean.

AI-assisted: yes (Claude Code)

Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU, no Wine). Merges cleanly, also together with #2217 and #2208 (all three touch make_game.py); tests/test_make_game_platform.py still passes with all three merged. With this PR alone: 46 tests OK. The PR's test file against main's make_game.py: 1 error, so the new test fails on main and passes with the fix. compileall clean. AI-assisted: yes (Claude Code)
whoalin1 commented 2026-11-26 13:25:08 +00:00

Consolidated into #2208 as cherry-pick c3790cb77 to reduce review noise. The relative-WINE fix and regression test are preserved there.

Consolidated into #2208 as cherry-pick `c3790cb77` to reduce review noise. The relative-WINE fix and regression test are preserved there.
Sign in to join this conversation.
No description provided.