feat(builder)!: build and play share one path, the launcher owns updates, and the fast check stops rebuilding #2762

Merged
HumanBean merged 6 commits from HumanBean/Longshot:feat/builder-cli-v2 into main 2026-11-28 21:50:11 +00:00
Owner

Summary

longshot-builder's command line, made simpler as decided for launcher v2 (a clean break: protocol 2, no compatibility
shims), and its "is a rebuild needed?" check made stable.

One routine. build_driver::play::ensure_built is what build and play both run: the fast check, then a build,
a rebuild, the shaders' preparation alone, or nothing when the folder is current. build --profile P is that routine;
play --profile P is that routine (the same JSON events during a rebuild) and then the game. With no arguments, or as
Longshot.exe / Longshot.x86_64, it plays.

The profile holds the settings. profile.json carries the copy, the upscalers, the accepted licences and now
"language" and "prepare_shaders". build --profile P [--game ..] [--upscaler ..] [--language ..] [--accept-licenses ..] [--prepare-shaders on|off] writes what it is given into it, then builds (this is how
RecompLauncher's prepare step and the launcher's first build set a profile up: one command). play takes no settings.
--profile takes a launcher profile id (default, p-<8 hex>, resolved through launcher-instance.json beside the
program) or a folder; --profile-id is gone.

Removed: update (and build::update_options: a rebuild of a folder built before keeps its language unless the
profile names one, and still drops an upscaler whose licence is no longer accepted with upscaler_dropped; its times
are still kept as "update"), self-update with play's background check and --no-self-update, steam-shortcut with
the steam crate and its event (the launcher owns Steam shortcuts), and the stage command lift (dev lift is the
lifter's).

Places from the environment. Player commands take no --cache, --store, --work, --root, --ngx-sdk,
--builder-exe or --log: LONGSHOT_CACHE, LONGSHOT_STORE, LONGSHOT_SHADER_STORE, LONGSHOT_ROOT, ... as the
launcher's Builder::command sets them. mod loses --cache too.

dev. dev build (the profile-less build, with its places), dev image, dev index, dev compile, dev prepare,
dev share, dev sources, dev stamps, dev storage, beside the lifter's dev commands.

--output json means: events alone on stdout, no window of the builder's, and play gives the game its launcher
start-up; the builder no longer reads LONGSHOT_LAUNCHER_STARTUP (it still sets it for the game). info says
"protocol": 2, the one number a launcher checks.

One at a time. build --profile takes the profile's lock as play does: a build while a play of the same profile
builds or runs (or another build) stops at once with profile_in_use (exit 123); two profiles sharing a work folder are
kept apart by the work folder's lock (work_folder_busy).

The new command line

longshot-builder [play] [--profile <id | dir>] [--output ..] [--safe-start] [--send-build-statistics] [--] [game args]
longshot-builder build --profile <id | dir> [--game <file.nup | dump>] [--upscaler dlss,fsr4,xess|none]
                       [--language <code>] [--accept-licenses nvidia,amd,intel] [--prepare-shaders on|off]
                       [--compile-shaders most|all] [--jobs N] [--output ..] [--send-build-statistics]
longshot-builder check --game <file.nup | dump>
longshot-builder verify (--profile <id | dir> | --out <folder>) [--repair (with --profile)] [--jobs N]
longshot-builder doctor [--profile <id | dir>]
longshot-builder extract-romfs --game <...> --out <folder>
longshot-builder perf-report <game folder> [--send | --tick on|off [--keep-sent on|off]]
longshot-builder from-source (--archive <file> | --commit <40 hex> [--url <base>]) --out <folder> [--name ..] [--jobs N]
longshot-builder fetch <tag | stable | nightly> --out <folder> [--from <folder> ...] [--platform ..]
longshot-builder info [--profile <id | dir>]                      ("protocol": 2)
longshot-builder mod [--profile <id | dir>] [--output ..] <command> ...
longshot-builder diagnostics ...
longshot-builder dev build --game <..> --out <folder> [--work --store --root --jobs --log --language --upscaler
                           --compile-shaders --no-prepare-shaders --accept-licenses --guest-profile
                           --cache --ngx-sdk --builder-exe]
longshot-builder dev image|index|compile|prepare|share|sources|stamps|storage ...   (as before, under dev)
longshot-builder dev discover|sites|lift|profile|site-hooks|words|decode|tools ...  (unchanged)

Why it rebuilt or prepared shaders when nothing changed

Each cause on main, and what this does about it (game-free tests for each, written, not run:
build_driver::play::tests::a_build_is_current_for_the_next_check_by_any_path_and_with_preparation_off,
ensure_built_builds_only_when_the_check_says_so, build_driver::shaders::tests::a_failed_preparation_is_not_retried_for_the_same_inputs):

  1. builder/crates/longshot-builder/src/main.rs:437-444 (build_cmd): build --profile never asked the fast check: a
    second build straight after a successful one ran the whole build again (lift and compile checks, the romfs, the
    swap, the shader check). Now it is ensure_built: nothing when current.

  2. builder/crates/build-driver/src/play.rs:387-391 (game_stamp): the copy's stamp held its device and inode. Both
    change with no change to the file (a btrfs subvolume's or a removable drive's device number at each mount; exFAT,
    NTFS-3G or network drives' made-up inodes), so the first play after a reboot or a remount built the game again. Now
    size and write time.

  3. builder/crates/build-driver/src/play.rs:218 (Profile::key): the copy's path was the absolute one as reached, so
    the same profile reached by another path (a relative --profile, a symbolic link, the launcher's id against its
    folder) was "the profile's game files changed". Now the canonical path.

  4. builder/crates/build-driver/src/play.rs:527 with shaders.rs:683 (would_prepare asks with asked = true): a
    profile built with preparation off had never-prepared shaders, a Shaders reason at every start, and a rebuild that
    again did not prepare them, forever. Now the profile's prepare_shaders is passed in and honoured.

  5. builder/crates/build-driver/src/shaders.rs:728-733 and build.rs:781-786: a preparation that failed (the
    supervisor's bounds, a driver fault, a cache it could not open) recorded nothing, so would_prepare said "prepare"
    at every start and each start rebuilt to fail the same way. Now the failure is noted with its inputs' key
    (cache/longshot_prepare_failed_key.txt), and the check skips it until the driver, the renderer, the shader list or
    the level changes (the game prepares what it needs at its first start, as with preparation off); a success removes
    the note.

  6. builder/crates/build-driver/src/play.rs:683-686: a Shaders reason (a new driver, another GPU) ran a whole build
    to prepare shaders. Now BuildOptions::shaders_only: the preparation alone, under the same locks.

  7. builder/crates/build-driver/src/shader_cache.rs:19-31 (store_dir): with LONGSHOT_SHADER_STORE unset, the
    check looked for the preparation's receipt in the old per-user folder (~/.cache/longshot/shaders,
    %LOCALAPPDATA%\Longshot\shaders), while configure_store gave the game the cache's shader-store, the place
    the launcher also sets. A direct start (a terminal, Steam's shortcut to Longshot.x86_64) never found the receipt
    and prepared again. The check now uses the same store as the game (shaders::shader_store); the old folder is
    only looked at as a legacy location. Test: shader_cache::tests::the_receipt_s_store_is_the_game_s_when_none_is_named.

  8. builder/crates/build-driver/src/shaders.rs (linux_drivers): the driver id included VK_DRIVER_FILES,
    VK_ICD_FILENAMES, VK_ADD_DRIVER_FILES and XDG_DATA_DIRS's manifests, so an AppImage, Flatpak or Steam runtime
    gave another id and starts from two environments prepared in turn. It now keys on what the PC has: the manifests
    of /etc, /usr/local/share, /usr/share and ~/.local/share, their libraries, NVIDIA's version, and each GPU's
    vendor, device, kernel driver and module version (no Vulkan call).

Read first: build_driver::play::ensure_built (play.rs), longshot-builder's parse and build_cmd (main.rs),
play::resolve_profile (longshot-builder play.rs).

Testing

Tested: nothing was run: no tests, no game, no job queue (as asked; this PR is opened with --force). cargo check,
cargo clippy --workspace --tests (no warnings) and cargo fmt on the Rust; python -m py_compile on the changed
scripts and tests. The game-free tests above and the updated ones (main.rs, play.rs, info.rs, tests/cli.rs,
tests/one_copy.rs, build-driver/tests/driver.rs, tests/test_dev_update.py, test_dev_build.py, test_dev_packs.py) are
written, not run.

Still to test:

  • This PC (Linux, NVIDIA): mise run test and the Rust tests, expecting them to pass (by hand)
  • This PC: longshot-builder build --profile <p> --game <nup> twice: the second prints fast check: current and a
    done of 0 s, no compile, no shader stage; then play --profile <p> starts the game at once (by hand)
  • This PC: the same profile with --prepare-shaders off, then play twice: no rebuild (by hand)
  • Windows: play with no arguments as Longshot.exe, and RecompLauncher's prepare line (build --game .. --profile .. --output recomplauncher --upscaler ..), expecting a build and the game (@Beanstalk once its agent speaks protocol 2)
  • dev.py packs base/pack/rt and dev.py update, expecting the same builds as before through dev build (by hand)

Measurements

Nothing to measure: a command line and a check that now skips work it repeated; no game code changes.

Risks

  • Breaks every caller of the old command line, by design (protocol 2). Outside this repository:
    • Longshot Launcher (~/Projects/LongshotLauncher, origin/main): src/game/versions.rs:529-549 (play with
      --profile-id, or --profile .. --cache .. --no-self-update --upscaler ..), src/game/wizard.rs:897-915 (build
      with --cache/--builder-exe from configure(), src/game/process.rs:207-216), src/game/process.rs:83-88 (mod
      --cache), src/game/releases.rs:656-664 (from-source --cache), src/game/sharing.rs:122-124 (perf-report
      --cache), src/game/steam.rs:84-89 (steam-shortcut, removed), and the LONGSHOT_LAUNCHER_STARTUP it sets
      (versions.rs:542, now ignored: --output json decides). It should read info's protocol and refuse anything but
      2. check, info --profile, verify --out, extract-romfs, fetch are unchanged.
    • Beanstalk agent: agent/Core/WorkspaceBuilder.cs:479 (check --game .. --cache ..: --cache refused) and
      :951-952 (build --game --out --work --store --root --cache --language --no-prepare-shaders: now dev build).
      Its dev.py packs runs keep working (dev.py inserts dev).
  • A game folder built before this rebuilds once at the first play (its stamp's copy and profile keys changed); a new
    release rebuilds anyway.
  • A failed shader preparation is no longer retried at each start for the same inputs; the game prepares at its first
    start as it does with preparation off.
  • Revert is enough to undo.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (nothing run, as asked: see Testing)
  • mise run test passes (any failure that also fails on main is named). (not run on this PC, as asked)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here. (written for each cause; not run, so not shown failing on main)
  • A check under tests/ that reads changed source is updated, not weakened.
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary longshot-builder's command line, made simpler as decided for launcher v2 (a clean break: protocol 2, no compatibility shims), and its "is a rebuild needed?" check made stable. **One routine.** `build_driver::play::ensure_built` is what `build` and `play` both run: the fast check, then a build, a rebuild, the shaders' preparation alone, or nothing when the folder is current. `build --profile P` is that routine; `play --profile P` is that routine (the same JSON events during a rebuild) and then the game. With no arguments, or as `Longshot.exe` / `Longshot.x86_64`, it plays. **The profile holds the settings.** profile.json carries the copy, the upscalers, the accepted licences and now `"language"` and `"prepare_shaders"`. `build --profile P [--game ..] [--upscaler ..] [--language ..] [--accept-licenses ..] [--prepare-shaders on|off]` writes what it is given into it, then builds (this is how RecompLauncher's prepare step and the launcher's first build set a profile up: one command). `play` takes no settings. `--profile` takes a launcher profile id (`default`, `p-<8 hex>`, resolved through `launcher-instance.json` beside the program) or a folder; `--profile-id` is gone. **Removed:** `update` (and `build::update_options`: a rebuild of a folder built before keeps its language unless the profile names one, and still drops an upscaler whose licence is no longer accepted with `upscaler_dropped`; its times are still kept as "update"), `self-update` with play's background check and `--no-self-update`, `steam-shortcut` with the `steam` crate and its event (the launcher owns Steam shortcuts), and the stage command `lift` (`dev lift` is the lifter's). **Places from the environment.** Player commands take no `--cache`, `--store`, `--work`, `--root`, `--ngx-sdk`, `--builder-exe` or `--log`: `LONGSHOT_CACHE`, `LONGSHOT_STORE`, `LONGSHOT_SHADER_STORE`, `LONGSHOT_ROOT`, ... as the launcher's `Builder::command` sets them. `mod` loses `--cache` too. **`dev`.** `dev build` (the profile-less build, with its places), `dev image`, `dev index`, `dev compile`, `dev prepare`, `dev share`, `dev sources`, `dev stamps`, `dev storage`, beside the lifter's `dev` commands. **`--output json`** means: events alone on stdout, no window of the builder's, and play gives the game its launcher start-up; the builder no longer reads `LONGSHOT_LAUNCHER_STARTUP` (it still sets it for the game). **`info`** says `"protocol": 2`, the one number a launcher checks. **One at a time.** `build --profile` takes the profile's lock as play does: a build while a play of the same profile builds or runs (or another build) stops at once with `profile_in_use` (exit 123); two profiles sharing a work folder are kept apart by the work folder's lock (`work_folder_busy`). ### The new command line ``` longshot-builder [play] [--profile <id | dir>] [--output ..] [--safe-start] [--send-build-statistics] [--] [game args] longshot-builder build --profile <id | dir> [--game <file.nup | dump>] [--upscaler dlss,fsr4,xess|none] [--language <code>] [--accept-licenses nvidia,amd,intel] [--prepare-shaders on|off] [--compile-shaders most|all] [--jobs N] [--output ..] [--send-build-statistics] longshot-builder check --game <file.nup | dump> longshot-builder verify (--profile <id | dir> | --out <folder>) [--repair (with --profile)] [--jobs N] longshot-builder doctor [--profile <id | dir>] longshot-builder extract-romfs --game <...> --out <folder> longshot-builder perf-report <game folder> [--send | --tick on|off [--keep-sent on|off]] longshot-builder from-source (--archive <file> | --commit <40 hex> [--url <base>]) --out <folder> [--name ..] [--jobs N] longshot-builder fetch <tag | stable | nightly> --out <folder> [--from <folder> ...] [--platform ..] longshot-builder info [--profile <id | dir>] ("protocol": 2) longshot-builder mod [--profile <id | dir>] [--output ..] <command> ... longshot-builder diagnostics ... longshot-builder dev build --game <..> --out <folder> [--work --store --root --jobs --log --language --upscaler --compile-shaders --no-prepare-shaders --accept-licenses --guest-profile --cache --ngx-sdk --builder-exe] longshot-builder dev image|index|compile|prepare|share|sources|stamps|storage ... (as before, under dev) longshot-builder dev discover|sites|lift|profile|site-hooks|words|decode|tools ... (unchanged) ``` ### Why it rebuilt or prepared shaders when nothing changed Each cause on `main`, and what this does about it (game-free tests for each, written, not run: `build_driver::play::tests::a_build_is_current_for_the_next_check_by_any_path_and_with_preparation_off`, `ensure_built_builds_only_when_the_check_says_so`, `build_driver::shaders::tests::a_failed_preparation_is_not_retried_for_the_same_inputs`): 1. `builder/crates/longshot-builder/src/main.rs:437-444` (`build_cmd`): `build --profile` never asked the fast check: a second `build` straight after a successful one ran the whole build again (lift and compile checks, the romfs, the swap, the shader check). Now it is `ensure_built`: nothing when current. 2. `builder/crates/build-driver/src/play.rs:387-391` (`game_stamp`): the copy's stamp held its device and inode. Both change with no change to the file (a btrfs subvolume's or a removable drive's device number at each mount; exFAT, NTFS-3G or network drives' made-up inodes), so the first play after a reboot or a remount built the game again. Now size and write time. 3. `builder/crates/build-driver/src/play.rs:218` (`Profile::key`): the copy's path was the absolute one as reached, so the same profile reached by another path (a relative `--profile`, a symbolic link, the launcher's id against its folder) was "the profile's game files changed". Now the canonical path. 4. `builder/crates/build-driver/src/play.rs:527` with `shaders.rs:683` (`would_prepare` asks with `asked = true`): a profile built with preparation off had never-prepared shaders, a `Shaders` reason at every start, and a rebuild that again did not prepare them, forever. Now the profile's `prepare_shaders` is passed in and honoured. 5. `builder/crates/build-driver/src/shaders.rs:728-733` and `build.rs:781-786`: a preparation that failed (the supervisor's bounds, a driver fault, a cache it could not open) recorded nothing, so `would_prepare` said "prepare" at every start and each start rebuilt to fail the same way. Now the failure is noted with its inputs' key (`cache/longshot_prepare_failed_key.txt`), and the check skips it until the driver, the renderer, the shader list or the level changes (the game prepares what it needs at its first start, as with preparation off); a success removes the note. 6. `builder/crates/build-driver/src/play.rs:683-686`: a `Shaders` reason (a new driver, another GPU) ran a whole build to prepare shaders. Now `BuildOptions::shaders_only`: the preparation alone, under the same locks. 7. `builder/crates/build-driver/src/shader_cache.rs:19-31` (`store_dir`): with `LONGSHOT_SHADER_STORE` unset, the check looked for the preparation's receipt in the old per-user folder (`~/.cache/longshot/shaders`, `%LOCALAPPDATA%\Longshot\shaders`), while `configure_store` gave the game the cache's `shader-store`, the place the launcher also sets. A direct start (a terminal, Steam's shortcut to `Longshot.x86_64`) never found the receipt and prepared again. The check now uses the same store as the game (`shaders::shader_store`); the old folder is only looked at as a legacy location. Test: `shader_cache::tests::the_receipt_s_store_is_the_game_s_when_none_is_named`. 8. `builder/crates/build-driver/src/shaders.rs` (`linux_drivers`): the driver id included `VK_DRIVER_FILES`, `VK_ICD_FILENAMES`, `VK_ADD_DRIVER_FILES` and `XDG_DATA_DIRS`'s manifests, so an AppImage, Flatpak or Steam runtime gave another id and starts from two environments prepared in turn. It now keys on what the PC has: the manifests of `/etc`, `/usr/local/share`, `/usr/share` and `~/.local/share`, their libraries, NVIDIA's version, and each GPU's vendor, device, kernel driver and module version (no Vulkan call). Read first: `build_driver::play::ensure_built` (play.rs), `longshot-builder`'s `parse` and `build_cmd` (main.rs), `play::resolve_profile` (longshot-builder play.rs). ## Testing **Tested:** nothing was run: no tests, no game, no job queue (as asked; this PR is opened with `--force`). `cargo check`, `cargo clippy --workspace --tests` (no warnings) and `cargo fmt` on the Rust; `python -m py_compile` on the changed scripts and tests. The game-free tests above and the updated ones (main.rs, play.rs, info.rs, tests/cli.rs, tests/one_copy.rs, build-driver/tests/driver.rs, tests/test_dev_update.py, test_dev_build.py, test_dev_packs.py) are written, not run. **Still to test:** - This PC (Linux, NVIDIA): `mise run test` and the Rust tests, expecting them to pass (by hand) - This PC: `longshot-builder build --profile <p> --game <nup>` twice: the second prints `fast check: current` and a `done` of 0 s, no compile, no shader stage; then `play --profile <p>` starts the game at once (by hand) - This PC: the same profile with `--prepare-shaders off`, then `play` twice: no rebuild (by hand) - Windows: `play` with no arguments as `Longshot.exe`, and RecompLauncher's prepare line (`build --game .. --profile .. --output recomplauncher --upscaler ..`), expecting a build and the game (`@Beanstalk` once its agent speaks protocol 2) - `dev.py packs base`/`pack`/`rt` and `dev.py update`, expecting the same builds as before through `dev build` (by hand) ## Measurements Nothing to measure: a command line and a check that now skips work it repeated; no game code changes. ## Risks - **Breaks every caller of the old command line**, by design (protocol 2). Outside this repository: - **Longshot Launcher** (`~/Projects/LongshotLauncher`, `origin/main`): `src/game/versions.rs:529-549` (play with `--profile-id`, or `--profile .. --cache .. --no-self-update --upscaler ..`), `src/game/wizard.rs:897-915` (build with `--cache`/`--builder-exe` from `configure()`, `src/game/process.rs:207-216`), `src/game/process.rs:83-88` (mod `--cache`), `src/game/releases.rs:656-664` (from-source `--cache`), `src/game/sharing.rs:122-124` (perf-report `--cache`), `src/game/steam.rs:84-89` (**`steam-shortcut`, removed**), and the `LONGSHOT_LAUNCHER_STARTUP` it sets (`versions.rs:542`, now ignored: `--output json` decides). It should read `info`'s `protocol` and refuse anything but 2. `check`, `info --profile`, `verify --out`, `extract-romfs`, `fetch` are unchanged. - **Beanstalk** agent: `agent/Core/WorkspaceBuilder.cs:479` (`check --game .. --cache ..`: `--cache` refused) and `:951-952` (`build --game --out --work --store --root --cache --language --no-prepare-shaders`: now `dev build`). Its dev.py packs runs keep working (dev.py inserts `dev`). - A game folder built before this rebuilds once at the first play (its stamp's copy and profile keys changed); a new release rebuilds anyway. - A failed shader preparation is no longer retried at each start for the same inputs; the game prepares at its first start as it does with preparation off. - Revert is enough to undo. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [ ] Tested on my own PC, in the game for a change the game runs, as Testing says. (nothing run, as asked: see Testing) - [ ] `mise run test` passes (any failure that also fails on `main` is named). (not run on this PC, as asked) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [ ] A fix: a game-free test that fails on `main` and passes here. (written for each cause; not run, so not shown failing on `main`) - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
build_driver::play::ensure_built is the one routine: the fast check, then a
build, a rebuild, or the shaders' preparation alone, or nothing when current.
play runs it before each start; the profile holds the language and whether
the shaders are prepared.

The fast check built again when nothing changed:
- the copy's stamp held its device and inode, which change at a mount
  (btrfs subvolumes, removable and exFAT drives);
- the profile's key held the copy's absolute path as reached, not its
  canonical one (a relative --profile, a link, an id against a folder);
- with preparation off the never-prepared shaders were a reason each start;
- a preparation that failed noted nothing, so each start rebuilt to fail
  again (now noted by its inputs' key, tried again when they change);
- a shaders-only reason ran a whole build (now the preparation alone).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
play and build run the one ensure_built, so 'update' has no job of its own.
The launcher replaces a copy and owns Steam shortcuts: 'self-update' (and
play's --no-self-update and background check) and 'steam-shortcut' (with
the steam crate and their events) go.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
- build --profile <id | dir> writes the settings it is given (--game,
  --upscaler, --language, --accept-licenses, --prepare-shaders on|off) into
  profile.json, then runs ensure_built, play's routine; a current folder
  builds nothing and says done. It holds the profile's lock, as play does,
  so a build and a play of one profile never run together.
- play takes only --profile; --profile-id, --game, --upscaler and --cache
  go. An id (default, p-<8 hex>) resolves through launcher-instance.json.
- --cache, --store, --work, --root, --ngx-sdk and --builder-exe are no
  player command's flags: LONGSHOT_CACHE and the rest. mod loses --cache.
- dev build|image|index|compile|prepare|share|sources|stamps|storage are
  the developer's (dev build is the profile-less build with its places);
  the stage lift goes (dev lift is the lifter's).
- verify takes --profile or --out; its --repair needs --profile and
  rebuilds through ensure_built.
- dev.py packs/build/update and CI call dev build/compile/prepare.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
info reports "protocol": 2, the one number a launcher checks before it
calls a builder. LONGSHOT_LAUNCHER_STARTUP is no switch of the builder's
any more: with --output json (events alone on stdout, no window of the
builder's) play gives the game its launcher start-up and sends the
game_starting/game_started events, and the plan's start estimate is the
launcher's.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
docs(builder): the command line of protocol 2; CI's renderer compile under dev
Some checks failed
PR description / Title and description (pull_request_target) Successful in 9s
CI / What the change needs (pull_request) Successful in 11s
CI / Third-party parts and guide screenshots (pull_request) Failing after 13s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 1m31s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
a3ca8d967c
Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(builder): one shader store for direct and launcher starts; the Linux driver id ignores the loader's variables
Some checks failed
CI / What the change needs (pull_request) Successful in 12s
CI / Third-party parts and guide screenshots (pull_request) Failing after 14s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 1m27s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m42s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 4m4s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m27s
PR description / Title and description (pull_request_target) Failing after 5s
CI / Website build and checks (pull_request) Failing after 1m26s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m58s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 20m2s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 39m16s
bbd2109265
With LONGSHOT_SHADER_STORE unset the fast check looked for the
preparation's receipt in the old per-user folder, while the game was
given the cache's shader-store (the launcher's place too): a direct start
never found it and prepared again. The check now uses the same store the
game gets.

The Linux driver id no longer includes VK_DRIVER_FILES, VK_ICD_FILENAMES,
VK_ADD_DRIVER_FILES or XDG_DATA_DIRS: the system's manifest folders and
each GPU's vendor, device, kernel driver and module version, so two
runtimes' environments no longer prepare in turn.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
HumanBean changed title from WIP: feat(builder)!: build and play share one path, the launcher owns updates, and the fast check stops rebuilding to feat(builder)!: build and play share one path, the launcher owns updates, and the fast check stops rebuilding 2026-11-28 21:50:06 +00:00
HumanBean deleted branch feat/builder-cli-v2 2026-11-28 21:50:12 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
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
MagicBeanDev/Longshot!2762
No description provided.