A better download page: a hero over the Cove with the download for your computer, the trailer, what you'll do, what's new and how to report a bug, screenshots (tools/site/make_shots.sh), downloads, and playing with friends with the ports

This commit is contained in:
Paul Bailey
2026-11-07 13:24:46 +00:00
parent 3b611a6d34
commit 04b9d17826
6 changed files with 462 additions and 93 deletions

16
tools/site/make_shots.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
# The download page's screenshots (tools/site/shots.gd), rendered in a window:
#
# tools/site/make_shots.sh # -> build/shots/*.jpg (make_site.sh copies them)
#
# Takes under a minute. Run it again when the game's look changes.
cd "$(dirname "$0")/../.." || exit 1
. tools/godot_env.sh
mkdir -p build/shots
rm -f build/shots/*.jpg
"$GODOT" --path . --resolution 1280x720 --script tools/site/shots.gd -- "$PWD/build/shots" > build/shots/render.log 2>&1
if grep -q "SCRIPT ERROR" build/shots/render.log || [ -z "$(ls build/shots/*.jpg 2>/dev/null)" ]; then
echo "rendering the screenshots failed: see build/shots/render.log"; exit 1
fi
grep "^shots:" build/shots/render.log