Skip to content

A setup step that keeps the copy builds again without it (prepare.keeps_copy) - #308

Merged
elripalda merged 4 commits into
elripalda:mainfrom
Xarishark:feat/prepare-keeps-copy
Nov 19, 2026
Merged

elripalda merged 4 commits into
elripalda:mainfrom
Xarishark:feat/prepare-keeps-copy

Conversation

@Xarishark

@Xarishark Xarishark commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Builds on #307 (setup state), which is merged. Main is merged in here, so the diff is this PR's own.

What

A game built from the player's copy can now say its setup step keeps what it needs from the copy, and runs again from there without it:

"prepare": {
  "program": ["YourGameBuilder.exe"],
  "args": ["--cli", "--prepare", "--game={game}", "--out", "{install}/YourGame"],
  "done": ["{install}/YourGame/yourgame.exe"],
  "keeps_copy": true
},
"folders": { "game": [{ "path": "{install}/YourGame" }] }

Players who deleted their copy to save space (#215) aren't asked for it again when the game has to be built again.

How

  • prepare.keeps_copy (bool). What the step kept is its build folder, the first folders.game, when it's there with files in it.
  • The game is built again from what it kept when all of these hold:
    • the copy is gone;
    • prepare.version changed, or a prepare.done file is missing;
    • the launcher built it;
    • start doesn't take {game}.
  • How that shows: the setup status is rebuild with detail kept, so Play opens Easy Setup headed Build It Again. The copy isn't needed, and Set Up runs the step at once.
  • The run leaves out every argument with {game} in it. That's why the copy must be one argument (--game={game}). The ticked options' args are still added, so DLSS and the like work in that run.
  • The copy picked before stays remembered as it was.
  • Build folder gone: what it kept went with it, so the copy is asked for, as before.
  • The run fails: B's setup transaction leaves the game as it was. The error says to choose the copy, and the copy box is right there.
  • Developer check: it warns about a separate "{game}" argument, no build folder, and no prepare.done. Warnings only; nothing is blocked.
  • Schema and DEVELOPERS.md cover the field, with the example above.
  • One new string, in all 21 locales.

Today's launchers ignore the field (Prepare has no deny_unknown_fields), so a project can ship it early. Only the schema refuses it until this is on main.

Tested

  • After merging main (Easy Setup keeps the player's choices: one status, setups as transactions, a mode per game #307, The developer guide carries the SDK's own parts, so the SDK's guide is a copy of it #311): bazzite-kde 769 Rust and 370 UI tests pass; windows-vm 730 Rust tests pass, and the UI tests pass.
  • The app check below was run again on the merged build, with the same result.
  • The real app on bazzite-kde, through tauri-driver, with a made-up game that had been set up before, whose copy was deleted and whose prepare.version went from 1 to 2:
    • Play opens Easy Setup on Build It Again, with Set Up enabled.
    • The builder ran with --cli --prepare --out …, without --game.
    • Afterwards the game is ready (built), at version 2.
  • The same game with nothing usable kept: the builder fails, the game stays on version 1 with its old build, and the error asks for the copy.
  • Not tested on macOS: nothing here is macOS-specific.

For the patch notes

  • Players: "A game built from your copy can build itself again after an update without asking for your copy, when its developer says it keeps what it needs."
  • For the website (SDK guide): "Add prepare.keeps_copy: set it when your setup step keeps what it needs from the player's copy in your build folder (the first folders.game) and can run again from there. The launcher then leaves out every argument with {game} when the copy is gone, so pass the copy as one argument (--game={game}), and list prepare.done."

…ps_copy)

A game built from the player's copy can say its setup step keeps what it
needs from the copy in its build folder (the first folders.game) and runs
again from there. With the copy gone (deleted to save space), a changed
prepare.version or a missing prepare.done file no longer asks for it: the
status says "rebuild" with "kept", and setup_copy with no path runs the
step again, leaving out every argument with {game} in it (so the copy has
to be one argument, --game={game}; option args are still added). The copy
picked before stays remembered as it was. A build folder that's gone took
what it kept with it: then the copy is asked for, as before. A run that
fails leaves the game as it was and says to choose the copy.

The developer check warns about a separate "{game}" argument, no build
folder, and no prepare.done. Schema and DEVELOPERS.md have the field with
an example.
…the copy

When a game's setup step kept what it needs from the copy (game_setup's
kept) and no copy is picked, the game step is headed Build It Again, says
the copy isn't needed, and Set Up starts setup_copy with no path. The copy
box stays, so the player can still build from their copy instead. The run
screen leaves out reading and checking the copy, and Play opens it without
the "pick your copy" note. Desktop and Big Picture share it.
Main's elripalda#302 deleted Profile::game_folders beside the new kept_from_copy: kept_from_copy stays, game_folders goes.
@Xarishark
Xarishark marked this pull request as ready for review November 19, 2026 01:11
@elripalda
elripalda merged commit d9e5923 into elripalda:main Nov 19, 2026
6 checks passed
Xarishark added a commit to Xarishark/RecompLauncher that referenced this pull request Nov 19, 2026
Brings in Beta 65, the game update rollback (elripalda#303), keeps_copy (elripalda#308) and the
developer guide additions (elripalda#311). Every language file gained texts on both sides
at its end; both are kept. The setup step keeps its temp folder, room check and
data folder, and takes main's prepare_args, so a run without the copy (keeps_copy)
gets them too. The "no prepare.done" warning stays quiet for a keeps_copy step,
which already gets its own more exact one.
elripalda pushed a commit that referenced this pull request Nov 21, 2026
…border (#392)

* Easy Setup: a long label no longer pushes Choose over its box's border

The box kept a fixed height after its text was allowed to wrap (#350), so a long input label pushed the button row onto the border. The text now wraps to two lines at most and the box grows past that, on desktop and Big Picture. The preview page has a case with a long label.

* Easy Setup: the copy box names the game and says its input's label once

A single named input showed its label as the title and again under it. The box now has the game on top, like a game.kind copy. It also gets the original game's name again: a variable added in #308 hid the game passed in, so the title fell back to the recomp's name.
@Xarishark
Xarishark deleted the feat/prepare-keeps-copy branch November 23, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants