17 lines
690 B
Bash
Executable File
17 lines
690 B
Bash
Executable File
#!/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
|