Add Linux GE-Proton workflow #1011

Closed
github-bot wants to merge 1 commit from gh-pr/1011/head into gh-pr/1011/base
Owner

@⁠MiguVT on GitHub · 2026-11-24 14:58 UTC · original
MiguVT:linux-ge-proton → main · +220 −3 · 5 files · 1 commits · closed without merging

Adds a Nix dev shell and launch helper for cross-building and running VIctory with GE-Proton on Linux. Documents setup, limitations, and controller support.

**@⁠MiguVT** on GitHub · 2026-11-24 14:58 UTC · [original](https://github.com/Marvisak/VIctory/pull/1011) `MiguVT:linux-ge-proton` → `main` · +220 −3 · 5 files · 1 commits · closed without merging Adds a Nix dev shell and launch helper for cross-building and running VIctory with GE-Proton on Linux. Documents setup, limitations, and controller support.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:17:00 +00:00
github-bot closed this pull request 2026-11-26 04:17:00 +00:00
Author
Owner

@⁠ThomasHFWright on GitHub · 2026-11-24 15:04 UTC · original

Checked the launcher at 3b0243325256dca348aa2c46f1339f44d2dcd33d on Linux using synthetic files and fake Cargo/Proton executables that record arguments and output paths. These are shell/argument tests, not a GE-Proton or gameplay validation. Nix is not installed on this host.

bash -n passes. Absolute title paths containing spaces and an absolute VICTORY_TITLE_EXE reach the runner correctly as Z:\...; the launch working directory is the external compatdata directory and the repository config is passed through VICTORY_CONFIG.

Two cases need attention in scripts/run-ge-proton.sh:

  1. Relative title paths pass the file check but are converted incorrectly. With an existing input files/title.exe relative to the caller's working directory, the runner receives Z:input files\title.exe. The script has changed directory to compatdata by then. This is a drive-relative Windows path, not the absolute input file that passed -f. Resolve the Unix path to an absolute path before conversion and before changing directory.
  2. The app path ignores a relocated Cargo target directory. With CARGO_TARGET_DIR pointing outside the checkout and no in-tree executable, the script runs the build, then still launches <repo>/target/x86_64-pc-windows-msvc/release/victory.exe. The stub build deliberately wrote its output beneath CARGO_TARGET_DIR, and the recorded launch path did not exist. Actual Cargo builds in our VIctory testing also use an external target directory. Resolve Cargo's effective target directory, or explicitly choose and pass one to the build, and check the executable exists after a successful build. A hard-coded in-tree path can also pick a stale binary if one is left over.

No game files or generated game data were used or attached. The Nix shell, GE-Proton runtime and controller behavior remain untested here.

AI-assisted testing with Codex.

**@⁠ThomasHFWright** on GitHub · 2026-11-24 15:04 UTC · [original](https://github.com/Marvisak/VIctory/pull/1011#issuecomment-7135419186) Checked the launcher at `3b0243325256dca348aa2c46f1339f44d2dcd33d` on Linux using synthetic files and fake Cargo/Proton executables that record arguments and output paths. These are shell/argument tests, not a GE-Proton or gameplay validation. Nix is not installed on this host. `bash -n` passes. Absolute title paths containing spaces and an absolute `VICTORY_TITLE_EXE` reach the runner correctly as `Z:\...`; the launch working directory is the external compatdata directory and the repository config is passed through `VICTORY_CONFIG`. Two cases need attention in `scripts/run-ge-proton.sh`: 1. **Relative title paths pass the file check but are converted incorrectly.** With an existing `input files/title.exe` relative to the caller's working directory, the runner receives `Z:input files\title.exe`. The script has changed directory to compatdata by then. This is a drive-relative Windows path, not the absolute input file that passed `-f`. Resolve the Unix path to an absolute path before conversion and before changing directory. 2. **The app path ignores a relocated Cargo target directory.** With `CARGO_TARGET_DIR` pointing outside the checkout and no in-tree executable, the script runs the build, then still launches `<repo>/target/x86_64-pc-windows-msvc/release/victory.exe`. The stub build deliberately wrote its output beneath `CARGO_TARGET_DIR`, and the recorded launch path did not exist. Actual Cargo builds in our VIctory testing also use an external target directory. Resolve Cargo's effective target directory, or explicitly choose and pass one to the build, and check the executable exists after a successful build. A hard-coded in-tree path can also pick a stale binary if one is left over. No game files or generated game data were used or attached. The Nix shell, GE-Proton runtime and controller behavior remain untested here. AI-assisted testing with Codex.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:30 UTC · original

Automated triage for the maintainers. Closing because it is outside the project's scope (VIctory targets Windows hosts; ports, launchers and tooling for other platforms are not being taken).

Linux/GE-Proton tooling: shell.nix, a launch script with the author's own game path as default, a 115-line doc, a reworded README getting-started and a changed CLI description. Running under Proton is not what the project targets, and the README would advertise a setup nobody here tested.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:30 UTC · [original](https://github.com/Marvisak/VIctory/pull/1011#issuecomment-7148574394) Automated triage for the maintainers. Closing because it is outside the project's scope (VIctory targets Windows hosts; ports, launchers and tooling for other platforms are not being taken). Linux/GE-Proton tooling: shell.nix, a launch script with the author's own game path as default, a 115-line doc, a reworded README getting-started and a changed CLI description. Running under Proton is not what the project targets, and the README would advertise a setup nobody here tested. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1011
No description provided.