diff --git a/manyfold/cli/manyfold.sh b/manyfold/cli/manyfold.sh index 7f9d0c6..108eb4b 100755 --- a/manyfold/cli/manyfold.sh +++ b/manyfold/cli/manyfold.sh @@ -231,9 +231,9 @@ boot(){ mount_rclone set_upload_path force_public + start_hook_daemon get_xrfragment_assets mount_dir - start_hook_daemon scan_libraries & hook boot # emit unixy hook-event (/root/hook.d/boot/* scripts) diff --git a/manyfold/root/hook.d/inotify_MODIFY/package_janusxr.sh b/manyfold/root/hook.d/inotify_MODIFY/package_janusxr.sh new file mode 100755 index 0000000..af00466 --- /dev/null +++ b/manyfold/root/hook.d/inotify_MODIFY/package_janusxr.sh @@ -0,0 +1,32 @@ +#!/bin/sh +echo "$1" | grep datapackage || exit 0 # nothing to do +dir=$(dirname $1) +cd "$dir" +echo "[package_janusxr.sh] packing janusxr.html" + +glb=$(ls *.glb | head -n1) # todo: check datapackage.json instead of first match + +jml=' + +
+