export.sh: keep build/ out of the game (a .gdignore): screenshots and voice samples there were being packed into it

This commit is contained in:
Paul Bailey
2026-11-09 00:00:03 +00:00
parent 73599401bf
commit e5e7c0e343

View File

@@ -25,6 +25,10 @@ for v in $(grep -E '^application/(short_version|version|file_version|product_ver
done done
which=${1:-all} which=${1:-all}
mkdir -p build mkdir -p build
# Godot mustn't import build/ (screenshots, samples, the site): with
# all_resources, anything it imported there went into the game too.
touch build/.gdignore
find build -name "*.import" -delete
"$GODOT" --headless --path . --import >/dev/null 2>&1 "$GODOT" --headless --path . --import >/dev/null 2>&1
if [ "$which" = all ] || [ "$which" = macOS ]; then if [ "$which" = all ] || [ "$which" = macOS ]; then