2025-10-24 18:42:55 +02:00
|
|
|
|
#!/bin/sh
|
2025-10-29 21:36:14 +01:00
|
|
|
|
dir="$(dirname $1)"
|
2025-10-24 18:42:55 +02:00
|
|
|
|
cd "$dir"
|
|
|
|
|
|
echo "[package_janusxr.sh] packing janusxr.html"
|
|
|
|
|
|
|
|
|
|
|
|
glb=$(ls *.glb | head -n1) # todo: check datapackage.json instead of first match
|
|
|
|
|
|
|
|
|
|
|
|
jml='
|
|
|
|
|
|
<html>
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<title>janusxr room</title>
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<script src="https://web.janusvr.com/janusweb.js"></script>
|
|
|
|
|
|
<janus-viewer>
|
|
|
|
|
|
|
|
|
|
|
|
<FireBoxRoom>
|
|
|
|
|
|
<Room>
|
2025-10-28 17:57:34 +01:00
|
|
|
|
<Object id="experience" src="'$glb'" locked="true" pos="0 0 0"></Object>
|
2025-10-24 18:42:55 +02:00
|
|
|
|
</Room>
|
|
|
|
|
|
</FireBoxRoom>
|
|
|
|
|
|
|
|
|
|
|
|
</janus-viewer>
|
|
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|
|
|
|
|
|
'
|
|
|
|
|
|
|
|
|
|
|
|
echo "$jml" > janusxr.html
|