Add Linux GE-Proton workflow #1011

Closed
MiguVT wants to merge 1 commit from upstream-pr/1011 into main
MiguVT commented 2026-11-24 14:58:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by MiguVT on 2026-11-24T14:58:28Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6584690670 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1011). Originally posted by [MiguVT](https://github.com/MiguVT) on 2026-11-24T14:58:28Z. --- 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.
copilot-pull-request-reviewer[bot commented 2026-11-24 15:03:49 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T14:58:44Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

<!-- greyfinch-sync:Marvisak/VIctory:review:6041649675 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1011#pullrequestreview-6041649675). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/copilot-pull-request-reviewer%5Bbot%5D) on 2026-11-24T14:58:44Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
ThomasHFWright commented 2026-11-24 16:05:00 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ThomasHFWright on 2026-11-24T15:04:38Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7135419186 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1011#issuecomment-7135419186). Originally posted by [ThomasHFWright](https://github.com/ThomasHFWright) on 2026-11-24T15:04:38Z. --- 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.
upstream-sync closed this pull request 2026-11-25 01:05:14 +00:00
Marvisak commented 2026-11-25 01:07:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:30:07Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148574394 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1011#issuecomment-7148574394). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:30:07Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!1011
No description provided.