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:
16
tools/site/make_shots.sh
Executable file
16
tools/site/make_shots.sh
Executable 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
|
||||
Reference in New Issue
Block a user