feat(website): the Longshot Launcher's look, guides rewritten for launcher v2, and each launcher download's signed SHA-256 #3299

Merged
HumanBean merged 1 commit from HumanBean/Longshot:push-zzklnqmnlzmu into main 2026-12-06 01:54:58 +00:00
Owner

Summary

The website now looks like the Longshot Launcher, its guides are rewritten for launcher v2, and every launcher download shows its signed SHA-256.

Look. Dark only. The launcher's colours, fonts (Longshot Display headings), colour bar and header with rounded tabs. Launcher-style buttons and cards; the stand-alone and hero logos.

Front page.

  • Hero with the logo, the tagline and Get started / Contribute / Join Discord.
  • A "Beware of fake websites" note, then "Get Longshot." with the current stable version.
  • Development stats (changes merged, contributors) and the last 7 merged changes, collected at build time from Forgejo with a 30 s budget.

Install (/install/).

  • The page is static, built from docs/user/getting-started.md.
  • On Cloudflare, a small Worker (src/worker.ts, no Astro or Starlight) streams it through HTMLRewriter to fill in the live launcher version, the download buttons (file, size) and the SHA-256 list checked against the release's signature (Longshot#3265).
  • The browser picks the visitor's OS button as the main one, so the page caches the same for everyone.
  • New launcher v2 screenshots: Get started, the build screen.
  • A Discord invitation at the end.

/download.

  • /download/ 302s to /install/.
  • /download/launcher/<os> still 302s to the newest file.
  • An unknown download link gets a short "out of date or mistyped" page.
  • The old worker/ and the download page are gone.

Guides rewritten.

  • Steps: install, requirements (new table), Steam Deck, settings, updates & saves (Transfer a save merged in, with new screenshots), mods (installing from the launcher, kinds of mods, safety), advanced setup.
  • Help: common problems, report, performance, antivirus (shorter, v2 folders), check a download (new).
  • Contributing (new page by who you are, with Beanstalk), about, team.
  • Corrected against the launcher's and builder's source:
    • button names and the v2 folders;
    • no shader preparation (shaders are built during the build);
    • v2 file names;
    • the channels, including Earlier release, Main and Pull request;
    • moving from launcher 1.x, and uninstalling.
  • Developer detail moved off player pages.

Removed. The progress page (/progress 301s to the Forgejo issues) and its feed code.

Worker size: 2.9 MB β†’ 0.47 MB gzipped (the code it runs is 7 KB gzipped), well under the free plan's 3 MB.

Read first:

  • website/src/worker.ts, src/lib/install-page.ts, src/lib/launcher-view.ts, src/lib/launcher-channel.ts (install and downloads);
  • src/lib/front-page.ts;
  • astro.config.ts;
  • src/styles/theme.css.

Testing

Tested: Linux (CachyOS), Firefox, on the dev server (astro dev) and the built Worker (wrangler dev):

  • every page at desktop and phone widths;
  • /install/ with the real launcher releases (v1.3.1 stable): version, buttons, sizes and the signed hashes for stable and nightly;
  • /download/launcher/windows|linux 302, /download/launcher/nope 404 page, /download/ β†’ /install/, /progress β†’ Forgejo issues.
  • Website: node --test tests/*.test.ts 97/97, including the install page filled in Miniflare from the real guide, and the error paths. astro build + scripts/check-site.ts pass (19 pages, 1263 links).
  • Repo: the 20 checks this change reaches (dev.py test-changed's list, run with run_all.py --strict --exact) pass. A full run_all.py --strict here fails about 110 GPU and host checks in 0.0 s each, plus test_lifter.py: none reads anything this changes. (The queued test-changed stopped at gen-shaders exiting 2 with no message; the same command passes run by hand.)

The launcher screenshots were taken from LongshotLauncher main built as v2.0.0 in an empty throwaway profile (dummy saves). Some capture-only tweaks that hide the "no version built" notices were never committed. Each image's capture_notes in docs/user/images/guide/manifest.json says what was staged.

Still to test:

  • Windows, Chrome and Edge, a real phone: open /, /install/, /requirements/ and /settings/, expecting the same layout as on Firefox, the Windows button as the main one on Windows, and no sideways scroll on the phone (by hand).
  • Cloudflare: deploy to a preview, expecting /install/ filled in and /download/launcher/* redirecting (by hand, needs the Release repo change under Risks).

Measurements

Nothing to measure: the website and the user docs only, nothing the game runs.

Risks

  • Deploy: the build output changed. It is now website/dist/client (static) plus website/dist/server/wrangler.json (the Worker), not worker/index.ts + dist. The Release repo's website-stage.sh / website.py must change with this before the next site deploy.
  • Launcher v2: the guides describe launcher v2.0.0. Merge with the v2 release, not before; today's stable download is still v1.3.1.
  • Links:
    • /download and /saves/transfer redirect.
    • /progress and its feed JSON are gone; the address goes to Forgejo's issues.
    • The search index no longer has the old download page.
  • Players: nothing changes in the game, the launcher or their files.
  • Open questions for review:
    • The launcher's welcome says about 15 GiB for a first build; the docs say 10 GB.
    • The launcher still has a "Prepare shaders before playing" checkbox, which the docs no longer mention.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (Nothing the game runs: tested in the browser and the Worker.)
  • mise run test passes (any failure that also fails on main is named). (The checks this change reaches pass; the full run's GPU/host failures here are named under Testing.)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A check under tests/ that reads changed source is updated, not weakened.
  • Screenshots of the same spot on main and here, for a change that shows on screen. (to come in a comment: the live site is main)
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

πŸ€– Generated with Claude Code

## Summary The website now looks like the Longshot Launcher, its guides are rewritten for launcher v2, and every launcher download shows its signed SHA-256. **Look.** Dark only. The launcher's colours, fonts (Longshot Display headings), colour bar and header with rounded tabs. Launcher-style buttons and cards; the stand-alone and hero logos. **Front page.** - Hero with the logo, the tagline and Get started / Contribute / Join Discord. - A "Beware of fake websites" note, then "Get Longshot." with the current stable version. - Development stats (changes merged, contributors) and the last 7 merged changes, collected at build time from Forgejo with a 30 s budget. **Install (`/install/`).** - The page is static, built from `docs/user/getting-started.md`. - On Cloudflare, a small Worker (`src/worker.ts`, no Astro or Starlight) streams it through HTMLRewriter to fill in the live launcher version, the download buttons (file, size) and the SHA-256 list checked against the release's signature (Longshot#3265). - The browser picks the visitor's OS button as the main one, so the page caches the same for everyone. - New launcher v2 screenshots: Get started, the build screen. - A Discord invitation at the end. **`/download`.** - `/download/` 302s to `/install/`. - `/download/launcher/<os>` still 302s to the newest file. - An unknown download link gets a short "out of date or mistyped" page. - The old `worker/` and the download page are gone. **Guides rewritten.** - Steps: install, requirements (new table), Steam Deck, settings, updates & saves (Transfer a save merged in, with new screenshots), mods (installing from the launcher, kinds of mods, safety), advanced setup. - Help: common problems, report, performance, antivirus (shorter, v2 folders), check a download (new). - Contributing (new page by who you are, with Beanstalk), about, team. - Corrected against the launcher's and builder's source: - button names and the v2 folders; - no shader preparation (shaders are built during the build); - v2 file names; - the channels, including Earlier release, Main and Pull request; - moving from launcher 1.x, and uninstalling. - Developer detail moved off player pages. **Removed.** The progress page (`/progress` 301s to the Forgejo issues) and its feed code. **Worker size:** 2.9 MB β†’ 0.47 MB gzipped (the code it runs is 7 KB gzipped), well under the free plan's 3 MB. Read first: - `website/src/worker.ts`, `src/lib/install-page.ts`, `src/lib/launcher-view.ts`, `src/lib/launcher-channel.ts` (install and downloads); - `src/lib/front-page.ts`; - `astro.config.ts`; - `src/styles/theme.css`. ## Testing **Tested:** Linux (CachyOS), Firefox, on the dev server (`astro dev`) and the built Worker (`wrangler dev`): - every page at desktop and phone widths; - `/install/` with the real launcher releases (v1.3.1 stable): version, buttons, sizes and the signed hashes for stable and nightly; - `/download/launcher/windows|linux` 302, `/download/launcher/nope` 404 page, `/download/` β†’ `/install/`, `/progress` β†’ Forgejo issues. - Website: `node --test tests/*.test.ts` 97/97, including the install page filled in Miniflare from the real guide, and the error paths. `astro build` + `scripts/check-site.ts` pass (19 pages, 1263 links). - Repo: the 20 checks this change reaches (`dev.py test-changed`'s list, run with `run_all.py --strict --exact`) pass. A full `run_all.py --strict` here fails about 110 GPU and host checks in 0.0 s each, plus `test_lifter.py`: none reads anything this changes. (The queued `test-changed` stopped at `gen-shaders` exiting 2 with no message; the same command passes run by hand.) The launcher screenshots were taken from LongshotLauncher main built as v2.0.0 in an empty throwaway profile (dummy saves). Some capture-only tweaks that hide the "no version built" notices were never committed. Each image's `capture_notes` in `docs/user/images/guide/manifest.json` says what was staged. **Still to test:** - Windows, Chrome and Edge, a real phone: open `/`, `/install/`, `/requirements/` and `/settings/`, expecting the same layout as on Firefox, the Windows button as the main one on Windows, and no sideways scroll on the phone (by hand). - Cloudflare: deploy to a preview, expecting `/install/` filled in and `/download/launcher/*` redirecting (by hand, needs the Release repo change under Risks). ## Measurements Nothing to measure: the website and the user docs only, nothing the game runs. ## Risks - **Deploy:** the build output changed. It is now `website/dist/client` (static) plus `website/dist/server/wrangler.json` (the Worker), not `worker/index.ts` + `dist`. The Release repo's `website-stage.sh` / `website.py` must change with this before the next site deploy. - **Launcher v2:** the guides describe launcher v2.0.0. Merge with the v2 release, not before; today's stable download is still v1.3.1. - **Links:** - `/download` and `/saves/transfer` redirect. - `/progress` and its feed JSON are gone; the address goes to Forgejo's issues. - The search index no longer has the old download page. - **Players:** nothing changes in the game, the launcher or their files. - **Open questions for review:** - The launcher's welcome says about 15 GiB for a first build; the docs say 10 GB. - The launcher still has a "Prepare shaders before playing" checkbox, which the docs no longer mention. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. (Nothing the game runs: tested in the browser and the Worker.) - [x] `mise run test` passes (any failure that also fails on `main` is named). (The checks this change reaches pass; the full run's GPU/host failures here are named under Testing.) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A check under `tests/` that reads changed source is updated, not weakened. - [ ] Screenshots of the same spot on `main` and here, for a change that shows on screen. (to come in a comment: the live site is `main`) - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. πŸ€– Generated with [Claude Code](https://claude.com/claude-code)
feat(website): the Longshot Launcher's look, guides rewritten for launcher v2, and each launcher download's signed SHA-256
Some checks are pending
CI / What the change needs (pull_request) Waiting to run
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Waiting to run
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Waiting to run
978beda4d9
The site takes the launcher's colours, fonts, colour bar and header. /install/ is built
ahead of time; a small Worker fills in the live launcher version, downloads and signed
SHA-256s, and the browser picks the visitor's OS. /download/ redirects to /install/, the
progress page goes to Forgejo's issues. The guides are rewritten and checked against the
launcher's and builder's source, with new launcher v2 screenshots.

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

Possibly related, for context:

  • issue #2341 Idea: Warn more prominently about unofficial Longshot download sites β€” Adds a prominent warning about unofficial download sites
  • PR #3009 test(builder): a full download whose bytes are not the signed ones is refused β€” Signed-download SHA-256 verification precedent
Possibly related, for context: - issue #2341 Idea: Warn more prominently about unofficial Longshot download sites β€” Adds a prominent warning about unofficial download sites - PR #3009 test(builder): a full download whose bytes are not the signed ones is refused β€” Signed-download SHA-256 verification precedent
HumanBean changed title from WIP: feat(website): the Longshot Launcher's look, guides rewritten for launcher v2, and each launcher download's signed SHA-256 to feat(website): the Longshot Launcher's look, guides rewritten for launcher v2, and each launcher download's signed SHA-256 2026-12-06 01:54:53 +00:00
HumanBean deleted branch push-zzklnqmnlzmu 2026-12-06 01:54:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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!3299
No description provided.