fix(website): tell the launcher's version from the game's #1055

Merged
HumanBean merged 1 commit from HumanBean/Longshot:fix/website-launcher-version into main 2026-11-16 06:13:31 +00:00
Owner

Type: fix · Risk: low · Tested on: Linux, local build (wrangler dev) · Needs: none

Why

The launcher and Longshot, the game it builds, have separate version numbers (the launcher is at v1.0.0-rc.9, Longshot at v3.0.0-rc.5), and the website shows the launcher's tag on its own, with nothing saying which product it belongs to or that the game is numbered differently. Fixes LongshotLauncher#135 (in the launcher's repository, so it is closed by hand on merge).

How to reproduce

Seen on: any OS and browser, longshot.magicbean.dev
Settings and switches: defaults
Steps: open the front page and the install page, and look for the version numbers
Expected: each version says whose it is: the launcher's (v1.0.0-rc.9) or the game's, Longshot's (v3.0.0-rc.5)
Actual: the front page shows "Release candidate launcher: v1.0.0-rc.9" and nothing about Longshot's version; the download page's buttons show a bare "v1.0.0-rc.9"

What changed

The front page's download section now lists both version numbers, each named for what it is. The install and download pages say that the version they show is the launcher's, separate from Longshot's.

  • front page (website/src/components/LongshotHome.astro): a Launcher / Game list in the release section. The launcher row is filled in from /download/launcher/versions.json. The game row shows the stable Longshot, or the newest published v* release from the build-time feed when there is no stable release yet, linked to its release notes. This replaces "The latest Longshot is …", which showed only once a stable release existed, so it never appeared.
  • status line under the hero (installLauncherStatus in website/src/lib/launcher-channel.ts): "Release candidate launcher: v1.0.0-rc.9" becomes "Longshot Launcher v1.0.0-rc.9 · release candidate". It now fills every [data-launcher-status], the hero's and the list's.
  • install page (website/src/repo-docs/format-install.ts): a plain line under "Available now: Longshot Launcher …" says this is the launcher's own version.
  • download page (website/worker/index.ts): a sentence that the versions on the page are the launcher's, and the big button's tag reads "Launcher v…".
  • checks: tests/launcher-channel.test.ts (status text, both slots), tests/download.test.ts, tests/repo-docs.test.ts.

Screenshots

Before: main, as deployed on longshot.magicbean.dev. After: this PR @ a83b88f6, local astro build + wrangler dev (live release data).

Before After
Front page, download section before home after home
Front page, under the hero before top after top
Install page before install after install
Download page before download after download

After, light and at phone width (390 px):

Light Phone
Front page home light home phone
Install page install light install phone
Download page download light download phone

Measurements

Nothing to measure: the website's wording, not the game.

Flags and settings

None

Testing

Tested: built the site (astro build) and served it with wrangler dev, Linux, Chromium: front, install and download pages in dark, light and at 390 px. The screenshots above are from that run, with the live launcher release list.

Not tested: the website's checks (node --test tests/*.test.ts) and tests/run_all.py. Not run on this PC; CI runs them.

Must be tested: None

Risks

What could break: the front page's version list if the feed has no v* release (it then shows just "Longshot", no tag), or if versions.json fails (the launcher row keeps its link to the launcher's releases).

Turning it off: revert the commit

Compatibility: Nothing changes

Checklist

Everyone

  • One topic.
  • The title is a Conventional Commit (type(scope): description) of the status line's type.
  • Why gives the reason plainly and links the issues that fit (the tracker searched).
  • Measurements has a verdict, or one line saying why there is nothing to measure.
  • Testing names what was tested, what wasn't, and what must still be tested, where and how.
  • Rebased on current main.
  • python -I -B tests/run_all.py passes (any failure that also fails on main is named). Not run on this PC; left to CI.
  • No game files, dumps, build output or generated files.
  • third_party/ untouched (a new folder with a PROVENANCE.md instead).
  • The license is OK: GPL-3.0-or-later, nothing incompatible and nothing decompiled.

When it applies

  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

🤖 Generated with Claude Code

**Type:** fix · **Risk:** low · **Tested on:** Linux, local build (wrangler dev) · **Needs:** none ## Why The launcher and Longshot, the game it builds, have separate version numbers (the launcher is at v1.0.0-rc.9, Longshot at v3.0.0-rc.5), and the website shows the launcher's tag on its own, with nothing saying which product it belongs to or that the game is numbered differently. Fixes [LongshotLauncher#135](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/issues/135) (in the launcher's repository, so it is closed by hand on merge). ## How to reproduce **Seen on:** any OS and browser, longshot.magicbean.dev **Settings and switches:** defaults **Steps:** open the front page and the install page, and look for the version numbers **Expected:** each version says whose it is: the launcher's (v1.0.0-rc.9) or the game's, Longshot's (v3.0.0-rc.5) **Actual:** the front page shows "Release candidate launcher: v1.0.0-rc.9" and nothing about Longshot's version; the download page's buttons show a bare "v1.0.0-rc.9" ## What changed The front page's download section now lists both version numbers, each named for what it is. The install and download pages say that the version they show is the launcher's, separate from Longshot's. - front page (`website/src/components/LongshotHome.astro`): a **Launcher / Game** list in the release section. The launcher row is filled in from `/download/launcher/versions.json`. The game row shows the stable Longshot, or the newest published `v*` release from the build-time feed when there is no stable release yet, linked to its release notes. This replaces "The latest Longshot is …", which showed only once a stable release existed, so it never appeared. - status line under the hero (`installLauncherStatus` in `website/src/lib/launcher-channel.ts`): "Release candidate launcher: v1.0.0-rc.9" becomes "Longshot Launcher v1.0.0-rc.9 · release candidate". It now fills every `[data-launcher-status]`, the hero's and the list's. - install page (`website/src/repo-docs/format-install.ts`): a plain line under "Available now: Longshot Launcher …" says this is the launcher's own version. - download page (`website/worker/index.ts`): a sentence that the versions on the page are the launcher's, and the big button's tag reads "Launcher v…". - checks: `tests/launcher-channel.test.ts` (status text, both slots), `tests/download.test.ts`, `tests/repo-docs.test.ts`. ### Screenshots Before: main, as deployed on longshot.magicbean.dev. After: this PR @ a83b88f6, local `astro build` + `wrangler dev` (live release data). | | Before | After | |---|---|---| | Front page, download section | ![before home](https://git.magicbean.dev/attachments/a2707a2a-fdb0-41ae-89c3-c7214a2affb2) | ![after home](https://git.magicbean.dev/attachments/c2606911-9ad5-44ef-a1b4-080bda19d188) | | Front page, under the hero | ![before top](https://git.magicbean.dev/attachments/1831074c-91de-487d-975c-03fc1ee2969e) | ![after top](https://git.magicbean.dev/attachments/4ee5607d-c96e-427d-aaed-2203b8dee611) | | Install page | ![before install](https://git.magicbean.dev/attachments/6a2df440-be9f-464e-9a0a-925404d827a4) | ![after install](https://git.magicbean.dev/attachments/d8b2534e-3edb-40f4-b79f-059d5f082357) | | Download page | ![before download](https://git.magicbean.dev/attachments/980eca39-d9e7-472c-9b09-ebbd216eac2e) | ![after download](https://git.magicbean.dev/attachments/4786f418-97d8-4ac6-b3d5-2cfacbe697cd) | After, light and at phone width (390 px): | | Light | Phone | |---|---|---| | Front page | ![home light](https://git.magicbean.dev/attachments/10c5e1f6-a5e3-4c48-b9d2-9110083660e8) | ![home phone](https://git.magicbean.dev/attachments/2bc756cd-7f6b-41c8-83dd-fc67231bd702) | | Install page | ![install light](https://git.magicbean.dev/attachments/968fc335-2052-4735-88b0-353eb223a9e3) | ![install phone](https://git.magicbean.dev/attachments/8de3c52c-ac92-4c3e-b7e6-0e22d4936590) | | Download page | ![download light](https://git.magicbean.dev/attachments/a9241eee-cbd9-497c-9db7-80d95fa5cdfd) | ![download phone](https://git.magicbean.dev/attachments/130933bc-1e1c-4540-b318-d7ff192f4c31) | ## Measurements Nothing to measure: the website's wording, not the game. ### Flags and settings None ## Testing **Tested:** built the site (`astro build`) and served it with `wrangler dev`, Linux, Chromium: front, install and download pages in dark, light and at 390 px. The screenshots above are from that run, with the live launcher release list. **Not tested:** the website's checks (`node --test tests/*.test.ts`) and `tests/run_all.py`. Not run on this PC; CI runs them. **Must be tested:** None ## Risks **What could break:** the front page's version list if the feed has no `v*` release (it then shows just "Longshot", no tag), or if versions.json fails (the launcher row keeps its link to the launcher's releases). **Turning it off:** revert the commit **Compatibility:** Nothing changes ## Checklist ### Everyone - [x] One topic. - [x] The title is a Conventional Commit (`type(scope): description`) of the status line's type. - [x] Why gives the reason plainly and links the issues that fit (the tracker searched). - [x] Measurements has a verdict, or one line saying why there is nothing to measure. - [x] Testing names what was tested, what wasn't, and what must still be tested, where and how. - [x] Rebased on current `main`. - [ ] `python -I -B tests/run_all.py` passes (any failure that also fails on `main` is named). Not run on this PC; left to CI. - [x] No game files, dumps, build output or generated files. - [x] `third_party/` untouched (a new folder with a `PROVENANCE.md` instead). - [x] The license is OK: GPL-3.0-or-later, nothing incompatible and nothing decompiled. ### When it applies - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(website): tell the launcher's version from the game's
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 6s
Website / Website on Cloudflare (pull_request_target) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 13s
CI / Workflow lint (actionlint) (pull_request) Successful in 15s
Third-party parts / As their notes say (pull_request) Successful in 23s
PR description / Description follows the template (pull_request_target) Failing after 3s
a83b88f601
The launcher (v1.x) and Longshot, the game it builds (v3.x), have separate version numbers, and the site showed the
launcher's alone, as a bare tag. The front page's release section now lists both, each named for what it is (the
launcher: the app you download; the game: what it builds, whose builder it downloads), and the status line under the
hero names the Longshot Launcher before its tag. The install and download pages say their versions are the
launcher's, separate from Longshot's.

Fixes MagicBeanDev/LongshotLauncher#135

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

Screenshots added: before (deployed main) and after (this PR @ a83b88f6) for the front, install and download pages, plus light and 390 px views.

Screenshots added: before (deployed main) and after (this PR @ a83b88f6) for the front, install and download pages, plus light and 390 px views.
Author
Owner

Added How to reproduce.

Added How to reproduce.
HumanBean changed title from WIP: fix(website): tell the launcher's version from the game's to fix(website): tell the launcher's version from the game's 2026-11-16 06:13:27 +00:00
HumanBean deleted branch fix/website-launcher-version 2026-11-16 06:13:32 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!1055
No description provided.