hex/site/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 9f87adfc4c
Site: /hex/android, a page for Hex for Android with Hex Preview's download (#2543)
Hex Preview (the Android build outside Google Play, published today as
android-preview-2305) had only a GitHub README as its download page: on a
phone the link sits under GitHub's own bars. Ryan asked for a served page at
anoma.ly/hex/android that mirrors the iPhone one.

Added:
- /hex/android (src/iphone.ts renderAndroid, written by scripts/iphone.ts with
  its social card and sitemap entry): the iPhone page's look and structure,
  with a Download Hex Preview button, the install steps, how updates work,
  questions, and help. Its labels and numbers are the Android app's own
  (Get started, Allow from this source, the 190 MB model, Android 12, hold the
  Hex key, Check for updates automatically).
- /hex/download/android (worker.ts): a 302 to the APK that latest.json on the
  android-preview branch names, so the button follows every new build without
  a site deploy. It redirects only to this repository's
  releases/download/android-preview-* files and answers 404 or 502 in plain
  text otherwise.
- Privacy policy, Hex for Android section: one item for Hex Preview's update
  check and update download (the same statement the app's own privacy text
  makes), a link to the Android page, and the policy's date.

Nothing is removed. The iPhone page is unchanged.

Verified: bun test in site/ (15 pass, two new cases in worker.test.ts for the
redirect, its refusal of another origin, and the unpublished case);
bun run build --mode dev (typecheck, 3 pages written); the built page and
card viewed at phone and desktop widths in Chrome, no horizontal overflow.
The redirect against the real branch is checked on dev.anoma.ly after the
deploy.
2026-11-23 12:26:46 -05:00
..
og
og-video
build.ts
card.ts
check-downloads.ts
generate-og.ts
generate-poster.ts
iphone.ts
labs.ts
prerender.ts
release-data.ts