website share thumbnail
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user