buildHTML.bat 612 B

123456789101112131415161718192021
  1. @ECHO off
  2. SET LOCATIONS=%CD%/locations
  3. PUSHD %1
  4. cd ./qsrc2tw/tools/QSRC2TW
  5. node index.js -in "%LOCATIONS%" -out "../../twine-code"
  6. cd ../..
  7. call npx tsc
  8. call npx esbuild "temp/typescript.js" --minify --outfile="twine-code/-generated/typescript-min.js"
  9. POPD
  10. if %PROCESSOR_ARCHITECTURE% == AMD64 (
  11. CALL "%~dp0qsrc2tw\tools\tweeGo\tweego_win64.exe" --head "%~dp0qsrc2tw\twine-code\misc\head.txt" -o "%~dp0glife.html" "%~dp0qsrc2tw\twine-code"
  12. ) else (
  13. CALL "%~dp0qsrc2tw\tools\tweeGo\tweego_win86.exe" --head "%~dp0qsrc2tw\twine-code\misc\head.txt" -o "%~dp0glife.html" "%~dp0qsrc2tw\twine-code"
  14. )
  15. @ECHO ON