feat(launcher): support --victory-exe for prebuilt VIctory runs #355

Merged
Lewandox merged 2 commits from upstream-pr/355 into main 2026-11-26 15:33:44 +00:00
Lewandox commented 2026-11-26 12:14:46 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by Lewandox on 2026-11-26T12:14:46Z.


Summary

Adds --victory-exe <path> (and --victory-exe=<path>) support to the pure-Rust graphical launcher (anyxboxx-launcher), resolving the limitation noted in docs/rust-full-status.md where Play and Shaders always started with a cargo build step (which fails under Proton or without a local repository checkout).

Changes

  • crates/anyxboxx-launcher/src/app_launch.rs: Parse --victory-exe <path> and --victory-exe=<path> into Args::victory_exe and apply it in App::apply_args.
  • crates/anyxboxx-launcher/src/app.rs: Store victory_exe: Option<PathBuf> on App, allow starting Play/Shaders without a repository checkout when --victory-exe is provided, and mention --victory-exe <path> in the missing-checkout error hint.
  • crates/anyxboxx-launcher/src/launch.rs: Add victory_exe: Option<PathBuf> to Plan and resolve it via Victory::prebuilt in both play_steps and precompile_steps so Building VIctory is skipped when using a prebuilt binary.
  • crates/anyxboxx-launcher/src/session.rs & crates/anyxboxx-launcher/src/ui_pages.rs: Pass victory_exe into session::make_plan so warm-cache fingerprinting and step previews reflect the prebuilt executable.
  • docs/rust-full-status.md & docs/fr/rust-full-status.md: Update the graphical launcher note to document --victory-exe.

Verification

  • cargo fmt -p anyxboxx-launcher -- --check — pass
  • cargo clippy -p anyxboxx-launcher --no-deps --all-targets -- -D warnings — pass
  • cargo test -p anyxboxx-launcher — 201 passed, 0 failed (including 4 new unit tests covering CLI parsing, step planning without a repo, missing executable error handling, and warm-cache planning with a prebuilt binary)
<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:6626426022 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/355). Originally posted by [Lewandox](https://github.com/Lewandox) on 2026-11-26T12:14:46Z. --- ## Summary Adds `--victory-exe <path>` (and `--victory-exe=<path>`) support to the pure-Rust graphical launcher (`anyxboxx-launcher`), resolving the limitation noted in `docs/rust-full-status.md` where Play and Shaders always started with a `cargo build` step (which fails under Proton or without a local repository checkout). ### Changes - **`crates/anyxboxx-launcher/src/app_launch.rs`**: Parse `--victory-exe <path>` and `--victory-exe=<path>` into `Args::victory_exe` and apply it in `App::apply_args`. - **`crates/anyxboxx-launcher/src/app.rs`**: Store `victory_exe: Option<PathBuf>` on `App`, allow starting Play/Shaders without a repository checkout when `--victory-exe` is provided, and mention `--victory-exe <path>` in the missing-checkout error hint. - **`crates/anyxboxx-launcher/src/launch.rs`**: Add `victory_exe: Option<PathBuf>` to `Plan` and resolve it via `Victory::prebuilt` in both `play_steps` and `precompile_steps` so `Building VIctory` is skipped when using a prebuilt binary. - **`crates/anyxboxx-launcher/src/session.rs` & `crates/anyxboxx-launcher/src/ui_pages.rs`**: Pass `victory_exe` into `session::make_plan` so warm-cache fingerprinting and step previews reflect the prebuilt executable. - **`docs/rust-full-status.md` & `docs/fr/rust-full-status.md`**: Update the graphical launcher note to document `--victory-exe`. ### Verification - `cargo fmt -p anyxboxx-launcher -- --check` — pass - `cargo clippy -p anyxboxx-launcher --no-deps --all-targets -- -D warnings` — pass - `cargo test -p anyxboxx-launcher` — 201 passed, 0 failed (including 4 new unit tests covering CLI parsing, step planning without a repo, missing executable error handling, and warm-cache planning with a prebuilt binary)
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
LooperSalty/AnyXboxX!355
No description provided.