#!/bin/bash SRC=aframe-troika-text-local.min.js # to test : python3 -m http.server # to clean up : rm -rf local-troika-fonts local-troika-test.html $SRC wget https://unpkg.com/aframe-troika-text/dist/aframe-troika-text.min.js -O $SRC sed -i "s|https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxM.woff|local-troika-fonts/roboto.woff|" $SRC mkdir local-troika-fonts wget https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxM.woff -O roboto.woff mv roboto.woff local-troika-fonts/ cat > local-troika-test.html << EOF