xrforge/manyfold/root/hook.d/experience_updated/300-package_lovr_zip.sh

13 lines
450 B
Bash
Raw Normal View History

2026-02-26 16:08:15 +01:00
#!/bin/sh
dir="$(dirname $1)"
cd "$dir"
echo "[package_lovr_zip.sh] zipping lovr.zip"
# overwrite empty lovr template project-zip with given URL
test -n "$LOVR_TEMPLATE_ZIP" && timeout 50 wget "$LOVR_TEMPLATE_ZIP" -O ~/templates/template_lovr.zip
2026-02-26 22:40:23 +01:00
ln -s $(echo *.glb *.obj *.dae | awk '{print $1}') scene.glb
2026-02-26 16:08:15 +01:00
cp ~/templates/template_lovr.zip .xrforge/lovr.zip
2026-02-26 22:40:23 +01:00
zip .xrforge/lovr.zip $(find -L . -maxdepth 1 -type f)
test -f scene.glb && rm scene.glb