added lovr export template + packager
This commit is contained in:
parent
a370014a6c
commit
d9a9ba2324
4 changed files with 12 additions and 1 deletions
|
|
@ -69,6 +69,7 @@ $ docker run -t xrforge docker.io/coderofsalvation/xrforge:latest -v ./config:/c
|
||||||
| `AFRAME_VERSION` | `1.7.0` | AFRAME version |
|
| `AFRAME_VERSION` | `1.7.0` | AFRAME version |
|
||||||
| `GODOT_VERSION` | `4.4.1-stable`| godot editor version |
|
| `GODOT_VERSION` | `4.4.1-stable`| godot editor version |
|
||||||
| `GODOT_TEMPLATE_ZIP` | `` | godot template zip URL or file (default is empty godot project) |
|
| `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 |
|
| `RUNTESTS` | `0` | set to `1` to run XRForge related [/test](test) scripts |
|
||||||
| `DEV` | `` | enable development mode (disables caching, sets `bin/dev` as entrypoint) |
|
| `DEV` | `` | enable development mode (disables caching, sets `bin/dev` as entrypoint) |
|
||||||
| `NO_PUBLIC_ONLY` | `` | disable public only models |
|
| `NO_PUBLIC_ONLY` | `` | disable public only models |
|
||||||
|
|
|
||||||
|
|
@ -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
|
test -n "$GODOT_TEMPLATE_ZIP" && timeout 50 wget "$GODOT_TEMPLATE_ZIP" -O ~/templates/template_godot.zip
|
||||||
|
|
||||||
cp ~/templates/template_godot.zip .xrforge/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)
|
||||||
|
|
|
||||||
10
manyfold/root/hook.d/experience_updated/300-package_lovr_zip.sh
Executable file
10
manyfold/root/hook.d/experience_updated/300-package_lovr_zip.sh
Executable file
|
|
@ -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)
|
||||||
BIN
manyfold/root/templates/template_lovr.zip
Normal file
BIN
manyfold/root/templates/template_lovr.zip
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue