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

10 lines
352 B
Bash
Executable file

#!/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)