Add Linux build support and update .gitignore #37

Open
github-bot wants to merge 4 commits from github-bot/gh-37 into main AGit
Owner

@⁠Satanas1275 on GitHub · 2026-11-24 20:45 UTC · original
Satanas1275:main → main · +56 −0 · 2 files · 4 commits · open

Just added linux build/run support and update gitignore...

**@⁠Satanas1275** on GitHub · 2026-11-24 20:45 UTC · [original](https://github.com/fxceless/victory-fork/pull/37) `Satanas1275:main` → `main` · +56 −0 · 2 files · 4 commits · open Just added linux build/run support and update gitignore...
linux build was added (thrue proton)
git ignore was modified to exclude proton cache
Refactor path conversion to a function and update variable assignments.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:35:00 +00:00
Author
Owner

@⁠ericomeehan on GitHub · 2026-11-24 22:18 UTC · original

Two small things before this goes in:

  • The default game folder names the title. The fallback for VICTORY_GAME_DIR in run_game.sh is a folder named after the title and its version, which puts the name back into the tree, which 4e17478 just removed everywhere. Requiring VICTORY_GAME_DIR (exit with a message when it's unset) avoids the name and also avoids guessing someone's folder layout.
  • The Proton default is one distribution's path (/usr/share/steam/compatibilitytools.d/proton-cachyos-slr). Most installs won't have it, so the script fails with a less obvious error than "set PROTON".

There are now several overlapping Linux paths open: this PR (run_game.sh at the root), #64 (scripts/*-linux.sh plus umu, Nix and a CI cross-compile job), #128 (building and testing the host-independent crates on Linux), and the Wine fixes in #20, #28 and #127. It may be worth settling on one launch script before merging any of them.

Written with an AI assistant (Claude).

**@⁠ericomeehan** on GitHub · 2026-11-24 22:18 UTC · [original](https://github.com/fxceless/victory-fork/pull/37#issuecomment-7146077646) Two small things before this goes in: - **The default game folder names the title.** The fallback for `VICTORY_GAME_DIR` in `run_game.sh` is a folder named after the title and its version, which puts the name back into the tree, which 4e17478 just removed everywhere. Requiring `VICTORY_GAME_DIR` (exit with a message when it's unset) avoids the name and also avoids guessing someone's folder layout. - **The Proton default is one distribution's path** (`/usr/share/steam/compatibilitytools.d/proton-cachyos-slr`). Most installs won't have it, so the script fails with a less obvious error than "set PROTON". There are now several overlapping Linux paths open: this PR (`run_game.sh` at the root), #64 (`scripts/*-linux.sh` plus umu, Nix and a CI cross-compile job), #128 (building and testing the host-independent crates on Linux), and the Wine fixes in #20, #28 and #127. It may be worth settling on one launch script before merging any of them. Written with an AI assistant (Claude).
Author
Owner

@⁠Satanas1275 on GitHub · 2026-11-25 07:10 UTC · original

Okay i've modified what's you want me to modify, I can't test right now but i will test if it run today at 7:00pm UTC+1 (basicely when I'm back from work)

**@⁠Satanas1275** on GitHub · 2026-11-25 07:10 UTC · [original](https://github.com/fxceless/victory-fork/pull/37#issuecomment-7155577842) Okay i've modified what's you want me to modify, I can't test right now but i will test if it run today at 7:00pm UTC+1 (basicely when I'm back from work)
Author
Owner

@⁠ErRusso on GitHub · 2026-11-24 23:44 UTC · original · requested changes

Reviewed at e36aa70 against 2119b0e.

The script is a useful minimal runner, but it has a path bug:

  • VICTORY_GAME_DIR and the title path are converted with winepath -w, but VICTORY_DATA_DIR and VICTORY_CACHE_DIR are exported as Unix paths ($(dirname "$here")/victory-data). victory.exe is a Windows process and will not interpret those as the intended directories; convert them with winepath -w too (or use Z:\...), after creating them.
  • exew is not checked; if winepath fails, the script execs with an empty title path.
  • The proton variable is only used for its wine binary; consider naming it accordingly.

Once the data/cache paths are Windows paths, this should work.

**@⁠ErRusso** on GitHub · 2026-11-24 23:44 UTC · [original](https://github.com/fxceless/victory-fork/pull/37#pullrequestreview-6049241379) · **requested changes** Reviewed at `e36aa70` against `2119b0e`. The script is a useful minimal runner, but it has a path bug: - `VICTORY_GAME_DIR` and the title path are converted with `winepath -w`, but `VICTORY_DATA_DIR` and `VICTORY_CACHE_DIR` are exported as Unix paths (`$(dirname "$here")/victory-data`). `victory.exe` is a Windows process and will not interpret those as the intended directories; convert them with `winepath -w` too (or use `Z:\...`), after creating them. - `exew` is not checked; if `winepath` fails, the script execs with an empty title path. - The `proton` variable is only used for its `wine` binary; consider naming it accordingly. Once the data/cache paths are Windows paths, this should work.
Author
Owner

@⁠ErRusso on GitHub · 2026-11-25 11:15 UTC · original · requested changes

Reviewed at 06fb604. Two of my items are fixed:

  • VICTORY_DATA_DIR/VICTORY_CACHE_DIR are created and converted with winepath before export.
  • exew is checked and the script exits if winepath fails.

Two defaults from @⁠ericomeehan's review are still in the script and are blocking:

  1. game=${VICTORY_GAME_DIR:-"$here/../GTA6.Xbox.v1.0.2.1"} still names the title in the tree. Require VICTORY_GAME_DIR and exit with the variable name when it is unset.
  2. proton_dir=${PROTON:-/usr/share/steam/compatibilitytools.d/proton-cachyos-slr} assumes one distribution's layout. Require PROTON, or search the standard compatibilitytools.d locations and fail with a clear message when neither finds a Proton.

There are also several overlapping Linux launchers in flight (#64, #128, #179, this one); the maintainers should settle on one before this lands. Please make the two changes above and report the run you planned.

**@⁠ErRusso** on GitHub · 2026-11-25 11:15 UTC · [original](https://github.com/fxceless/victory-fork/pull/37#pullrequestreview-6056598914) · **requested changes** Reviewed at `06fb604`. Two of my items are fixed: - `VICTORY_DATA_DIR`/`VICTORY_CACHE_DIR` are created and converted with `winepath` before export. - `exew` is checked and the script exits if `winepath` fails. Two defaults from @⁠ericomeehan's review are still in the script and are blocking: 1. `game=${VICTORY_GAME_DIR:-"$here/../GTA6.Xbox.v1.0.2.1"}` still names the title in the tree. Require `VICTORY_GAME_DIR` and exit with the variable name when it is unset. 2. `proton_dir=${PROTON:-/usr/share/steam/compatibilitytools.d/proton-cachyos-slr}` assumes one distribution's layout. Require `PROTON`, or search the standard `compatibilitytools.d` locations and fail with a clear message when neither finds a Proton. There are also several overlapping Linux launchers in flight (#64, #128, #179, this one); the maintainers should settle on one before this lands. Please make the two changes above and report the run you planned.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/37/head:github-bot/gh-37'
git switch 'github-bot/gh-37'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-37'
git switch 'github-bot/gh-37'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-37'
git switch 'github-bot/gh-37'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-37'
git switch 'main'
git merge --squash 'github-bot/gh-37'
git switch 'main'
git merge --ff-only 'github-bot/gh-37'
git switch 'main'
git merge 'github-bot/gh-37'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.