diff --git a/manyfold/README.md b/manyfold/README.md index 96a7654..599b374 100644 --- a/manyfold/README.md +++ b/manyfold/README.md @@ -69,6 +69,7 @@ $ docker run -t xrforge docker.io/coderofsalvation/xrforge:latest -v ./config:/c | `AFRAME_VERSION` | `1.7.0` | AFRAME version | | `GODOT_VERSION` | `4.4.1-stable`| godot editor version | | `GODOT_TEMPLATE_ZIP` | `` | godot template zip URL or file (default is empty godot project) | +| `LOVR_TEMPLATE_ZIP` | `` | lovr template zip URL or file (default is empty lovr project) | | `RUNTESTS` | `0` | set to `1` to run XRForge related [/test](test) scripts | | `DEV` | `` | enable development mode (disables caching, sets `bin/dev` as entrypoint) | | `NO_PUBLIC_ONLY` | `` | disable public only models | diff --git a/manyfold/root/hook.d/experience_updated/300-package_godot_zip.sh b/manyfold/root/hook.d/experience_updated/300-package_godot_zip.sh index bcb4963..a1e75ec 100755 --- a/manyfold/root/hook.d/experience_updated/300-package_godot_zip.sh +++ b/manyfold/root/hook.d/experience_updated/300-package_godot_zip.sh @@ -7,4 +7,4 @@ echo "[package_godot_zip.sh] zipping godot.zip" test -n "$GODOT_TEMPLATE_ZIP" && timeout 50 wget "$GODOT_TEMPLATE_ZIP" -O ~/templates/template_godot.zip cp ~/templates/template_godot.zip .xrforge/godot.zip -zip .xrforge/godot.zip *.glb *.usdz *.obj +zip .xrforge/godot.zip $(find . -maxdepth 1 -type f) diff --git a/manyfold/root/hook.d/experience_updated/300-package_lovr_zip.sh b/manyfold/root/hook.d/experience_updated/300-package_lovr_zip.sh new file mode 100755 index 0000000..ef6ab3c --- /dev/null +++ b/manyfold/root/hook.d/experience_updated/300-package_lovr_zip.sh @@ -0,0 +1,10 @@ +#!/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 + +cp ~/templates/template_lovr.zip .xrforge/lovr.zip +zip .xrforge/lovr.zip $(find . -maxdepth 1 -type f) diff --git a/manyfold/root/templates/template_lovr.zip b/manyfold/root/templates/template_lovr.zip new file mode 100644 index 0000000..c6518a7 Binary files /dev/null and b/manyfold/root/templates/template_lovr.zip differ