2025-08-22 11:30:34 +02:00
|
|
|
#!/bin/sh
|
2025-10-28 17:57:34 +01:00
|
|
|
echo "$1" | grep -E 'datapackage|glb$' || exit 0 # nothing to do
|
2025-08-22 11:30:34 +02:00
|
|
|
dir=$(dirname $1)
|
|
|
|
|
cd "$dir"
|
|
|
|
|
echo "[package_experience.sh] zipping $dir.zip"
|
|
|
|
|
|
2025-08-27 14:11:20 +02:00
|
|
|
# overwrite empty godot template project-zip with given URL
|
|
|
|
|
test -n "$GODOT_TEMPLATE_ZIP" && timeout 50 wget "$GODOT_TEMPLATE_ZIP" -O ~/template_godot.zip
|
|
|
|
|
|
|
|
|
|
cp ~/template_godot.zip package_godot.zip
|
2025-08-22 11:30:34 +02:00
|
|
|
zip package_godot.zip *.glb *.usdz *.obj
|