From 0584535d34565b2f15c7f9e9ccaa73c9c0263119 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Mon, 19 Oct 2026 22:04:11 -0700 Subject: [PATCH] website share thumbnail --- docs/operations.md | 2 +- site/card.html | 62 ++++++++++++++++++++++++++++++++++++++++++++++ site/deploy.sh | 1 + site/index.html | 10 ++++++++ 4 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 site/card.html diff --git a/docs/operations.md b/docs/operations.md index aaf75dc..92c2213 100644 --- a/docs/operations.md +++ b/docs/operations.md @@ -153,7 +153,7 @@ The app checks `https://dl.byre.run/appcast.xml` for updates (see "Updates" in ` byre.run and byre.team are registered at Porkbun, with Cloudflare as their DNS, in the Cloudflare account `cloudflare@flamingcow.io`. -- `https://byre.run/` (and `www.byre.run`) is the Cloudflare Pages project `byre`: `site/index.html`, with `mac/icon.svg`, `icon.png` (rendered from it at 180×180 with `rsvg-convert`, the favicon for browsers without SVG favicons and the apple-touch-icon) and the fonts from `mac/fonts/`. `site/deploy.sh` stages those files and publishes them with `wrangler pages deploy`. Releases don't redeploy it; its download link is `https://dl.byre.run/byre.dmg`, which each release replaces. +- `https://byre.run/` (and `www.byre.run`) is the Cloudflare Pages project `byre`: `site/index.html`, with `mac/icon.svg`, `icon.png` (rendered from it at 180×180 with `rsvg-convert`, the favicon for browsers without SVG favicons and the apple-touch-icon), `card.png` (the 1200×630 share card that `index.html`'s Open Graph tags name, a headless Google Chrome screenshot of `site/card.html`) and the fonts from `mac/fonts/`. `site/deploy.sh` stages those files and publishes them with `wrangler pages deploy`. Releases don't redeploy it; its download link is `https://dl.byre.run/byre.dmg`, which each release replaces. - `https://dl.byre.run/` is the R2 bucket `byre`'s custom domain, holding what `mac/release.sh` uploads (see "Releases"). - byre.team, and every path on it, redirects to `https://byre.run/` through a redirect rule on its zone (Rules → Redirect Rules in the dashboard), over proxied `AAAA 100::` records for `byre.team` and `www.byre.team`. diff --git a/site/card.html b/site/card.html new file mode 100644 index 0000000..71292b5 --- /dev/null +++ b/site/card.html @@ -0,0 +1,62 @@ + + + + + + + +
byre
+

A crew of coding agents,
on all your Macs.

+

Claude Code, Codex and Antigravity, side by side.

+ + diff --git a/site/deploy.sh b/site/deploy.sh index 67831fb..53f66e9 100755 --- a/site/deploy.sh +++ b/site/deploy.sh @@ -10,6 +10,7 @@ stage=$(mktemp -d) trap 'rm -rf "$stage"' EXIT cp "$site/index.html" "$mac/icon.svg" "$stage/" rsvg-convert --width 180 --height 180 --output "$stage/icon.png" "$mac/icon.svg" +"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless --hide-scrollbars --force-device-scale-factor=1 --window-size=1200,630 --screenshot="$stage/card.png" "file://$site/card.html" mkdir "$stage/fonts" cp "$mac"/fonts/*.woff2 "$stage/fonts/" npx --yes wrangler@4.151.2 pages deploy "$stage" --project-name byre --branch main --commit-dirty=true diff --git a/site/index.html b/site/index.html index 24c0a7a..9fca17c 100644 --- a/site/index.html +++ b/site/index.html @@ -8,6 +8,16 @@ + + + + + + + + + +