buildHTML.sh 471 B

12345678910111213141516171819202122
  1. LOCATIONS="$(pwd)/locations"
  2. pushd "$1" > /dev/null
  3. cd ./qsrc2tw/tools/QSRC2TW
  4. ./qsrc2tw -in "$LOCATIONS" -out "../../twine-code"
  5. cd ../..
  6. if which node > /dev/null
  7. then
  8. npx tsc
  9. npx esbuild "temp/typescript.js" --minify --outfile="twine-code/-generatedFromTW/typescript-min.js"
  10. else
  11. echo "Node could not be found"
  12. fi
  13. popd > /dev/null
  14. ./qsrc2tw/tools/tweeGo/tweego_nix64 --head "./qsrc2tw/twine-code/misc/head.txt" -o "./glife.html" "./qsrc2tw/twine-code"