diff --git a/manyfold/cli/manyfold.sh b/manyfold/cli/manyfold.sh index 92db37b..8bdf9b9 100755 --- a/manyfold/cli/manyfold.sh +++ b/manyfold/cli/manyfold.sh @@ -130,7 +130,6 @@ mount_dir(){ find /mnt -type d -mindepth 1 -maxdepth 1 | while read dir; do echocolor "[$APPNAME]" "mounting $dir as library" add_lib_to_db "$dir" - ln -s "$dir" /usr/src/app/public/. done } diff --git a/manyfold/root/hook.d/boot/httpserver.sh b/manyfold/root/hook.d/boot/httpserver.sh index 040fc23..a87db6b 100755 --- a/manyfold/root/hook.d/boot/httpserver.sh +++ b/manyfold/root/hook.d/boot/httpserver.sh @@ -17,5 +17,5 @@ test -n "$FEDERATE_DRIVE_CERT" && test -m "$FEDERATE_DRIVE_KEY" && { set -x rclone serve http \ - --poll-interval $FEDERATE_DRIVE_CACHE \ + --exclude .xrforge --poll-interval $FEDERATE_DRIVE_CACHE \ --addr 0.0.0.0:$FEDERATE_DRIVE_PORT ${AUTH} ${SSL} $FEDERATE_DRIVE_PATH &> /var/log/rclone.log & diff --git a/manyfold/root/hook.d/experience_updated/10-reset-log.sh b/manyfold/root/hook.d/experience_updated/10-reset-log.sh index 9086ec0..04b22d4 100755 --- a/manyfold/root/hook.d/experience_updated/10-reset-log.sh +++ b/manyfold/root/hook.d/experience_updated/10-reset-log.sh @@ -1,4 +1,6 @@ #!/bin/sh -cd "$(dirname $1)" +dir="$(dirname $1)/.xrforge" +mkdir -p "$dir" || true +cd "$dir" echo "[v] reset log.txt" date > log.txt diff --git a/manyfold/root/hook.d/experience_updated/300-package_experience_zip.sh b/manyfold/root/hook.d/experience_updated/300-package_experience_zip.sh index 8a78396..bebdbe6 100755 --- a/manyfold/root/hook.d/experience_updated/300-package_experience_zip.sh +++ b/manyfold/root/hook.d/experience_updated/300-package_experience_zip.sh @@ -1,5 +1,5 @@ #!/bin/sh dir="$(dirname $1)" cd "$dir" -echo "[package_experience.sh] zipping $dir.zip" -zip -r "$dir".zip $dir/* +echo "[package_experience.sh] zipping experience.zip" +zip -D ".xrforge/experience.zip * | tee -a .xrforge/log.txt 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 3db70f8..29b7516 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 @@ -1,10 +1,10 @@ #!/bin/sh dir="$(dirname $1)" cd "$dir" -echo "[package_experience.sh] zipping $dir.zip" +echo "[package_godot_zip.sh] zipping godot.zip" # overwrite empty godot template project-zip with given URL test -n "$GODOT_TEMPLATE_ZIP" && timeout 50 wget "$GODOT_TEMPLATE_ZIP" -O ~/template_godot.zip cp ~/template_godot.zip package_godot.zip -zip package_godot.zip *.glb *.usdz *.obj +zip .xrforge/godot.zip *.glb *.usdz *.obj diff --git a/manyfold/root/hook.d/experience_updated/300-package_janusxr.sh b/manyfold/root/hook.d/experience_updated/300-package_janusxr.sh index f3d4679..7dd5f8b 100755 --- a/manyfold/root/hook.d/experience_updated/300-package_janusxr.sh +++ b/manyfold/root/hook.d/experience_updated/300-package_janusxr.sh @@ -6,6 +6,7 @@ echo "[package_janusxr.sh] packing janusxr.html" glb=$(ls *.glb | head -n1) # todo: check datapackage.json instead of first match jml=' +