Skip to content

Installs keep the version you picked, and a deleted nightly isn't updated back to v3.0.0 - #412

Closed
Xarishark wants to merge 4 commits into
elripalda:mainfrom
Xarishark:fix/reinstall-keeps-version-393
Closed

Xarishark wants to merge 4 commits into
elripalda:mainfrom
Xarishark:fix/reinstall-keeps-version-393

Conversation

@Xarishark

Copy link
Copy Markdown
Collaborator

Refs #393 (the Longshot part: "stuck on 3.0.0", "reverts after one launch").

Why

An install with no version goes to the release the store let out, which for Longshot is v3.0.0, while its newest releases are nightlies. Several places installed with no version, and the update check misread nightlies once they were deleted.

What

  • Deleted nightlies. Longshot's server keeps only a few nightlies. Once the installed one was gone from the list, the update check couldn't compare "nightly-680" with "v3.0.0" and took v3.0.0 for newer, so automatic updates put players back on it. A tag that isn't a version is now compared by date: a release is newer only when it came out after the game was installed (newer_than_gone).
  • Updates by name. Automatic updates, Update All and the Update buttons install the version the update check offered (updateGame, S.updates). The "crashing a lot" warning still shows for it.
  • Same version stays picked. Change Build and a reinstall of the installed version keep whether the player picked it. The build picker keeps a first install's version and folder (both were dropped before). Going to the store's version never pins (picked_by_player).
  • Big Picture installs the release you choose by name, the newest too.
  • The pinned card says "Go Back to v3.0.0" when the store's version is older than the installed one, instead of "Go to the newest", and installs it by name. It reuses existing texts.

Tested

  • bazzite-kde: 995 Rust tests and 693 UI tests pass. The deleted-nightly test replays Longshot's real list: it fails on the old code (offers v3.0.0) and passes with the fix.
  • In the app, a debug build driven through tauri-driver against Longshot's real releases:
    • a nightly the server deleted gets no update offer;
    • installing nightly-681 marks it as picked, and reinstalling it keeps that;
    • the Updates tab shows "Go Back to v3.0.0".

Main has one unrelated commit since this branch (#411); it merges cleanly.

… pins (elripalda#393)

Whether an install is a version the player picked is one rule now (picked_by_player): the same
version again (Change Build, a reinstall) stays as it was, and the newest release or the one the
store let out never pins the game.
…lripalda#393)

An install with no version goes to the one the store let out, which for Longshot is v3.0.0 while
its newest releases are nightlies. Automatic updates, Update All and the Update buttons now
install the version on offer by name; Change Build and the build picker keep the version (and a
first install's folder); Big Picture installs the newest by name too. A picked nightly's card says
"Go Back to v3.0.0" instead of "Go to the newest".
…lripalda#393)

Longshot's server keeps a few nightlies. Once the installed one is gone from the list, the update
check couldn't compare "nightly-680" with "v3.0.0" and took v3.0.0 for newer, so automatic updates
put players back on it. A tag that isn't a version is now compared by date: a release is newer
only when it came out after the game was installed.
…ease dates with an offset read right (elripalda#393)

The test only had a Windows x64 build, so the Mac test machine (arm64) found none and offered nothing. A Forgejo server may send a release date with an offset (+02:00): it's taken off now.
@Xarishark

Copy link
Copy Markdown
Collaborator Author

Closing in favour of #429, which carries all of this PR's changes (installs keep the version picked, a deleted nightly isn't updated back to an older release, updates install the offered version by name) together with the SDK refactor.

@Xarishark Xarishark closed this Nov 22, 2026
@Xarishark
Xarishark deleted the fix/reinstall-keeps-version-393 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.

1 participant