#!/bin/bash SRC=aframe-local.min.js wget https://aframe.io/releases/1.4.0/aframe.min.js -O $SRC sed -i "s|https://cdn.aframe.io/fonts|local-fonts|" $SRC mkdir local-fonts wget https://cdn.aframe.io/fonts/Roboto-msdf.png wget https://cdn.aframe.io/fonts/Roboto-msdf.json mv Roboto-msdf.png local-fonts/ mv Roboto-msdf.json local-fonts/ mkdir local-models wget https://cdn.aframe.io/controllers/oculus-hands/v4/left.glb wget https://cdn.aframe.io/controllers/oculus-hands/v4/right.glb mv left.glb right.glb local-models/ sed -i "s|https://cdn.aframe.io/controllers/oculus-hands/v4|local-models|g" $SRC cat > local-aframe-test.html << EOF