Skip to content

A player's own build is checked against prepare.done, and works when a profile lists done files - #285

Merged
elripalda merged 1 commit into
elripalda:mainfrom
Xarishark:fix/own-build-done-check
Nov 17, 2026
Merged

elripalda merged 1 commit into
elripalda:mainfrom
Xarishark:fix/own-build-done-check

Conversation

@Xarishark

Copy link
Copy Markdown
Collaborator

"Use a Build You Already Have" lets a player point the launcher at a build they already made, so it isn't built again. Two things were wrong with it:

  • It wanted a program in the folder. A folder was refused unless it held an .exe, .AppImage, .x86_64 or executable, in it or in its bin folder. That guess doesn't fit every project: Longshot and Hookshot, for example, start from their AppImage in the release, and their build folder holds the game's data.
  • It didn't work at all for a profile with prepare.done. The player's folder replaced the build folder for every path in the profile except prepare.done, and the check for a build already there gives up whenever done is set. So setup_use_build always failed with "Its build isn't on this PC anymore." SSX is one such profile.

Now the profile says what a finished build looks like:

  • The check reads prepare.done. The files it lists in the build folder must be in the folder the player picks. If one isn't, the error names it: "It has no data/main.pak, which a finished build has. Pick the folder your build is in." A profile without done takes any folder with files in it. The rest of the check is unchanged: picking a file or its bin folder uses the folder above, and the launcher's own folder for the game is refused.
  • prepare.done moves with the player's build, like the start arguments, settings files, saves and folders already do. So the game counts as set up from it, and a missing file is said by name ("That build isn't finished: … is missing.").
  • setup_use_build accepts a build whose done files are all there. Without done, it works as before.

Nothing here knows a project by name, and there's no new field: prepare.done already exists. The developer guide and the schema description say it's also what a player's own build must have.

Separate from #284 (Easy Setup in steps), which calls the same command, with the folder, from its "Choose That Folder" line. The two don't depend on each other.

For the website (SDK guide): under prepare.done, add that its files in the build folder are also what a player's own build must have before the launcher uses it, so list one your build always leaves (like {install}/YourGame/game.pak). Without done, any folder with files in it is taken.

Tests (Windows VM, upstream main with this change):

  • cargo test: 654 passed.
    • New in lib.rs: a build with only data is taken when there's no done; a folder missing a done file is refused, and the error names the file.
    • New in profile.rs: done moves with the player's build (one outside the build folder stays), and nothing is missing without done. The three existing checks pass with the new argument.
  • node --test tests/: 335 tests, 324 pass, 11 skipped, 0 fail.

Not tried in the running app yet.

…am; it works when a profile lists done files
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