website share thumbnail

This commit is contained in:
Ian Gulliver
2026-10-19 22:04:11 -07:00
parent 5c714b3e2b
commit 0584535d34
4 changed files with 74 additions and 1 deletions
+1
View File
@@ -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