Skip to content

Add Linux build support and update .gitignore - #37

Open
Satanas1275 wants to merge 2 commits into
fxceless:mainfrom
Satanas1275:main
Open

Satanas1275 wants to merge 2 commits into
fxceless:mainfrom
Satanas1275:main

Conversation

@Satanas1275

Copy link
Copy Markdown

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

linux build was added (thrue proton)
git ignore was modified to exclude proton cache
@ericomeehan

Copy link
Copy Markdown

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).

@ErRusso ErRusso left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants