#!/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 ln -s $(echo *.glb *.obj *.dae | awk '{print $1}') scene.glb cp ~/templates/template_lovr.zip .xrforge/lovr.zip zip .xrforge/lovr.zip $(find -L . -maxdepth 1 -type f) test -f scene.glb && rm scene.glb