Reduces sites/quintodrome and sites/hyper to their genuinely site-specific
parts: a Config (branding, GitHub repo, Linux download-format list),
classifyAsset, and landing-page content/mockup. Everything else — the HTTP
server, routes, release cache, update-check protocol, and page chrome —
now lives once in internal/site and internal/component.
The Linux format toggle's button list, order, and per-format arch
availability is now driven entirely by Config.LinuxFormats, reproducing
each site's current behavior as data (quintodrome shows Snap on both
arches; hyper hides it on arm64) rather than as forked logic. The one
deliberate behavior change: platformLabel's "linux-*" normalization
(previously only applied to linux-rpm on hyper's side) now applies to all
linux-* formats, fixing a cosmetic label bug on hyper's deb/pacman/flatpak
download rows ("linux-deb · x64.deb" -> "Linux · x64.deb").
Also unifies top-level tooling: a single SITE-parameterized Makefile and
Dockerfile, a single tailwind.config.js scanning internal/** and sites/**,
and a shared public/ with both product logos.
Verified: go build/vet/test pass for both sites, and `make dev
SITE=quintodrome` / `SITE=hyper` were run and curl-checked against /,
/download (including each site's Linux format toggle and arch-filtering),
and /api/update-check, matching pre-refactor behavior.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Fixes up "app/http" and "app/html" import paths to their new
sites/quintodrome-prefixed locations. Also folds in the pending
gofmt whitespace fix to releases_test.go and the rebuilt app.css
that were sitting uncommitted before this move.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Implements the Hazel/Squirrel-style update endpoint expected by the
Hyper Electron app (and the custom Linux updater).
- Endpoint at /api/update-check and /update
- Accepts query params: version, platform (or os), arch, channel
- Returns 204 or the classic {name, notes, pub_date, url?} JSON
- Supports explicit channel=canary so stable-installed clients can opt in
- Updated Release model to carry TagName and PublishedAt for proper responses
This pairs with the corresponding client change in the hyper repo
(branch: update-endpoint-quine).