From d9a9ba2324185889fb5e6a47914e0dd0854a257b Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Thu, 26 Feb 2026 16:08:15 +0100 Subject: [PATCH] added lovr export template + packager --- manyfold/README.md | 1 + .../experience_updated/300-package_godot_zip.sh | 2 +- .../experience_updated/300-package_lovr_zip.sh | 10 ++++++++++ manyfold/root/templates/template_lovr.zip | Bin 0 -> 249 bytes 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 manyfold/root/hook.d/experience_updated/300-package_lovr_zip.sh create mode 100644 manyfold/root/templates/template_lovr.zip 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 0000000000000000000000000000000000000000..c6518a7d11d9d3aabec652c048633bc1f9ca473e GIT binary patch literal 249 zcmWIWW@Zs#U|`^2aNZRe)3&IMDHzC$0gK2mE)CrhK6u5Fw2$B&pcN$KeM!g zn}Lz#1v3K!OA1h(xAs|Yy_09o2cI~puYJi|(@W?2g(pD`A1-wZaT^&;?*2N-dvcKJ zm13jML03yfcuGWgzMd%+Dd8;@`QlTm;N@*p9NZ`s8T(N0|3c=K~Dex literal 0 HcmV?d00001