Repository navigation
After an update that needs a new build, Play stays Play and finishes the update in a small window - #340
Merged
Conversation
A rebuild is needed when the setup step changed since the build (a new prepare.version, which comes with an update) or when the build didn't finish. changed tells the two apart, so Play can say it's finishing the update instead of opening Easy Setup from the start. An unfinished build keeps Build It Again.
… step kept it new_prepare_options counted a game as set up only while the player's copy was there. With prepare.keeps_copy the step builds again from what it kept, so a player who deleted their copy is set up all the same, and an option an update added (FSR, say) is new to them too.
A test that the status sends changed only when it's true, so a page that doesn't know it sees nothing new.
…the update in a small window The page's Play stays, with "Needs a new build after the update" hung under it (it takes no room, so the buttons don't move), and Big Picture's menu says the same. Play opens Finish the Update (ui/update-build.js) instead of Easy Setup: what it's built from, any option the update added, and Build Now. It runs Easy Setup's own setup, drawn small, and starts the game when it's built. Hide lets it go on in the background without Easy Setup's question, and Play meanwhile shows that build. Big Picture asks the same in its dialogs and builds on its own setup screen. The page's new options count a kept build as set up too. 12 new texts in every language.
Play stays, with a line under it, and opens Finish the Update, which builds it again and starts the game. A game set up from named inputs opens Easy Setup for it, as before.
… names its steps by what they do
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a game's update changes its setup step (a new
prepare.version: Longshot will put its release version there, as #333's guide line asks of every game whose setup step builds the game), the launcher used to turn the game page's Play into Set up, and Play opened the full Easy Setup from the start ("Pick your copy of the game" in Big Picture), as if the game had never been set up. It now reads as the last part of the update.What
changed): its setup step changed since the build (an update). A build that never finished keeps Easy Setup's Build It Again, as before. Sent to the page only when true.ui/update-build.js) instead of Easy Setup: what happens ("{name} v3.3.0 needs a new build of the game", and that the copy isn't needed when the step kept what it needs,keeps_copy), any option the update added (marked New, on or off as its developer set it, as in Easy Setup; it answers Play's new-option question too, so that isn't asked twice), and Build Now. It runs Easy Setup's own setup (suBeginand thesetupevents), drawn small: the build's own line ("Compiling…"), the bar, and the copy's read and check when it builds from the copy. A game brought in by hand (not from the catalog) gets it too.new_prepare_optionsand the page'snewPrepOptscounted only a copy that's there).prepare.versionin the developer guide says what players see now.New texts in every language (12).
tools/launcher-i18n.py --checkfinds nothing new (it already fails on main; this branch only takes "Hide" off its unused list).Tests
cargo teston Linux (Bazzite VM, distrobox): 894 passed, 1 ignored. New: the status'schanged(an update's change says it, an unfinished build doesn't, and it's only sent when true), and a new option is new with the copy gone when the step kept it (it fails without the fix).cargo teston Windows 11 (VM): 829 passed, 1 ignored.node --test tests/*.test.cjs: 554 passed on Linux; 554 run, 543 passed, 0 failed, 11 skipped on Windows (Linux-only). New tests/update-build.test.cjs: which games get Play with the line and which keep Set up, the line only on the game page and on both Play buttons, Play opening the window before the new-option question and after the core's rebuild error, what the window says it builds from, the options starting as their developer set them, a game brought in by hand, Before You Play's copy row, the run being Easy Setup's and the game starting when built, Hide, Play during a hidden build, the kept copy and new options, Big Picture's menu line and build, every text in every language.keeps_copy, the copy then gone), updated to v1.0 with a newprepare.versionand a new option (AMD FSR 4, on by default):--prepare … --fsr.Patch notes (players)
For the website (SDK guide)
prepare.version: when it changes, the game's page keeps Play (with "Needs a new build after the update" under it), and the next Play opens a small Finish the Update window that builds it again (from what the step kept withkeeps_copy, or from the player's copy), asks about options the update added, and starts the game. A game set up from namedinputsopens Easy Setup for it.