feat(builder)!: the builder's protocol 2 command line, one launch path, launcher-owned Steam tiles #353
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!353
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:feat/builder-cli-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The builder's new command line (protocol 2, Longshot #2762) takes its places from the environment and its settings from the profile, and drops the flags the launcher passed. This moves the launcher to it: one function makes every builder command, Play is one path everywhere, and Steam tiles start the launcher.
Depends on Longshot #2762 (the builder side), and is stacked on launcher #352 (
src/game/builder_cli.rscomes from there). Merge #352 first; until then this diff shows #352's commits too. Only the top commit is this PR's.What changed
builder_cli::invoke(ctx, exe, Invoke::…)makes every builder process:check,build,play,info,fetch,from-source,verify,extract-romfs,perf-report,mod. Each gets--output json,--profile <dir>where it takes one, and its places in the environment (LONGSHOT_CACHE,LONGSHOT_STORE,LONGSHOT_SHADER_STORE,LONGSHOT_BUILDER_EXE).Context::configureand every hand-built builder command line ininfo.rs,reuse.rs,romfs.rs,sharing.rs,steam.rs,versions.rs,wizard.rs,releases.rsandprocess.rsare gone.info'sprotocolis read once per builder (remembered by its path, size and time). Anything but 2 is refused before any other command (OldBuilder).play --profile <dir>throughinvoke(Invoke::Play { own_windows }). From the window:--output json, and the Launch page shows the builder's progress events. From a shortcut (--play, Steam tiles, desktop shortcuts):--output user, so the launcher stays out of sight. The builder's own progress window shows a rebuild or a shader preparation alone (both go through play'sensure_built→shown_build; the game's start-up screen is used only with json), and its message box shows a failure.LaunchModenow differs only in Steam routing and whether the window's job owns the process.--play), with the launcher's Steam artwork, throughadd_tile/remove_tile. Its checkbox is read from whether that tile is in the library. It says "Restart Steam" when Steam is running, as the shortcut writes do.check --game→build --profilewith its settings (--prepare-shaders on|off, no separate shader call) →playwhen asked.shortcuts.vdfitself (the builder'ssteamcrate's VDF reader and writer, ported intosrc/game/steam/vdf.rs, plus add and remove inlibrary.rs). Every tile starts the launcher (--play <version> --profile <folder> --launcher-home <folder>). Migration and every shortcut write move a tile that starts a builder to the launcher, keeping its Steam id. Thesteam-shortcutbuilder call is gone.docs/builder.md(the command line, old builders, play, Steam tiles).docs/paths.mdandREADME.mdupdated to match.Behaviour changes
--cache,--store,--work,--root,--profile-id,--no-self-update,--builder-exeor--no-prepare-shaders.LONGSHOT_DATAis no longer set.LONGSHOT_BUILDER_EXEis set to the launcher.--output user(it was Windows only; Linux used json and showed nothing). The builder's progress window shows rebuilds and shader preparation, and its message boxes show failures. Exit codes 120, 121 and 123 get no second launcher dialog (ShortcutReported); for any other failure the launcher's dialog shows the builder's error text.scripts/translations.py). If the launcher has moved, its tile is written again with a new id.upscalersbefore each play (and the licence receipts, as before). Switching versions with different modules therefore rewritesprofile.json'supscalers.launcher-instance.jsonis no longer written. Existing ones are left in place and nothing reads them. The wizard no longer writesupscalersinto the profile after a build:build --profiledoes._icon.icogrid icon is no longer written (the four PNGs still are). The library is backed up once asshortcuts.vdf.bak-longshot. "Restart Steam" is said when a running Steam process is found.--helptext.fetchruns from the first installed builder that speaks protocol 2. Older installed versions can still be its delta bases (--from).Not run
Per the brief, nothing was run except
cargo check --locked --tests,cargo clippy --locked --all-targets -- -D warningsandcargo fmt --check, all passing on Linux:builder_cli.rs,steam/vdf.rs,steam/library.rs,wizard.rsandprocess.rswere written but not run.tests/test_launcher_core.py, the translations check and Tooling's release tests were not run either.--output userwindows from a Steam tile and the Settings Steam tile are unverified). No Windows compile: the#[cfg(windows)]paths inversions.rs,process.rsandsteam.rsare only reviewed.play_plan,game_starting,info.build.up_to_date,protocol) are taken from its docs and source.Checklist
tests/test_launcher_core.pypass — not runcargo check --tests(Linux)🤖 Generated with Claude Code
Possibly related, for context:
dba766666777d39abf51WIP: feat(builder)!: the builder's protocol 2 command line, one launch path, launcher-owned Steam tilesto feat(builder)!: the builder's protocol 2 command line, one launch path, launcher-owned Steam tilesJiro113 referenced this pull request2026-11-29 04:56:59 +00:00