Skip to content

Updates tab: no "No build for your system" on releases that have one - #260

Merged
elripalda merged 1 commit into
elripalda:mainfrom
Felitendo:fix/updates-tab-no-build
Nov 17, 2026
Merged

elripalda merged 1 commit into
elripalda:mainfrom
Felitendo:fix/updates-tab-no-build

Conversation

@Felitendo

Copy link
Copy Markdown
Contributor

What

The Updates tab no longer puts "No build for your system" on releases that have a build for this PC.

Seen on Linux x86_64 with two games whose releases ship an x86_64 AppImage:

  • Mario Kart World (adriadam10/mkw-recomp): v0.1.12 (mkw-recomp-0.1.12-x86_64.AppImage) was marked "No build for your system", with v0.1.11 installed.
  • Hookshot (Ocarina of Time): every release on its Forgejo server (v2.3.2, v2.3.1, v2.3.0, each with Hookshot-v2.3.x-x86_64.AppImage) was marked "No build for your system".

Nothing here is Linux or AppImage specific. The same happens on Windows and Mac.

Why

Picking the file works. assets::pick with the catalog patterns finds the AppImage for every one of those releases. The label comes from update_info's builds, and those were worked out from a different release list than the one the tab shows. There are two ways that happens:

1. The update info is older than the list (Mario Kart World). When the release list on disk is more than six hours old, get_releases returns it straight away and fetches a newer one in the background. The tab draws the old list, and relState calls update_info, which also reads the old list from disk. When the newer list arrives (releases-fresh), loadRels draws it, but S.updInfo still holds the answer from the old list. A release that only the new list has, the one the player most wants to see, gets "No build for your system". The same happens after Refresh (S.rels = {}). S.updInfo was only cleared by checkUpdates.

2. The update info comes from another project (Hookshot). Hookshot moved from GitHub (NotRexed/Hookshot) to its own Forgejo server, and the catalog now names forgejo:git.notrexed.dev/Hookshot/Hookshot. The tab lists the catalog project's releases (S.rels[a.repo]), and installing uses the catalog project too (do_install, versions). But update_info read the installed game's own repo, which still says NotRexed/Hookshot. Its GitHub releases (nightly, rc, v2.1.0, ...) include none of the listed v2.3.x tags, so every listed release got the label.

How

  • ui/app.js, loadRels: a release list that comes in clears S.updInfo, so the Updates tab asks update_info again. That covers the background refresh and Refresh.
  • ui/app.js, new askUpdInfo (moved out of relState): an answer to a question asked before the reset is dropped. It was worked out from the old list, and storing it would bring the wrong label back.
  • lib.rs, new listed_repo, used by update_info: the catalog's project, or the game's own when the catalog doesn't list it. That's the same choice versions already makes, and the same project the tab lists.

Checked on the real data on disk (catalog prepared with with_mine, cached release lists). Hookshot's builds go from nightly, rc, v2.1.0, ... to v2.3.2, v2.3.1, v2.3.0, ..., and the update on offer from none to v2.3.2. Mario Kart World's builds include v0.1.12 once they're asked for again with the new list.

Not in this PR: the Library badge (check_updates_for) and news still read the installed game's own project. A game whose project moved doesn't get its update badge until it's installed from the new project once. That's a separate change.

Tests

  • New tests/updates-tab.test.cjs, with Mario Kart World's real tags. Both tests failed before this change with No build for your system:
    • a release that comes in with a newer list isn't marked as having no build;
    • an answer worked out from the older list is dropped when it comes back late.
  • New unit tests in lib.rs:
    • the_updates_tab_reads_the_releases_of_the_project_the_catalog_lists: Hookshot's real projects. It failed before with left: "NotRexed/Hookshot".
    • the_updates_tab_reads_a_games_own_project_when_the_catalog_has_none.
  • cargo test: 655 passed. node --test tests/*.test.cjs: 282 passed.
  • Not tried in the running app yet.

…your system"

The Updates tab put "No build for your system" on releases that do have
one (Mario Kart World v0.1.12, Hookshot v2.3.x, both with an x86_64
AppImage). Picking the file was fine; the label came from update info
worked out from a different release list than the one on screen.

- loadRels: a list that comes in clears S.updInfo, so the tab asks again.
  Before, the tab opened on the list on disk, update_info answered from
  that list, and the newer list fetched in the background then showed a
  release the answer didn't know.
- askUpdInfo: an answer asked for before the list changed is dropped.
- update_info: reads the releases of the project the catalog names (the
  ones the tab lists and installing uses), not the installed game's own
  repo, which still points at GitHub after a project moved (Hookshot to
  its own Forgejo server).
@elripalda
elripalda merged commit c7603f6 into elripalda:main Nov 17, 2026
5 checks passed
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