2
0

buildHTML.bat 745 B

1234567891011121314151617181920212223242526272829
  1. @ECHO off
  2. SET LOCATIONS=%CD%/locations
  3. PUSHD %1
  4. cd ./qsrc2tw/tools/QSRC2TW
  5. CALL QSRC2TW.exe -in "%LOCATIONS%" -out "../../twine-code"
  6. cd ../..
  7. REM Check if node is installed
  8. node -v 2> Nul
  9. if "%errorlevel%" == "9009" (
  10. echo node could not be found
  11. ) else (
  12. call npx tsc
  13. call npx esbuild "temp/typescript.js" --minify --outfile="twine-code/-generatedFromTS/typescript-min.js"
  14. )
  15. POPD
  16. if %PROCESSOR_ARCHITECTURE% == AMD64 (
  17. CALL "%~dp0qsrc2tw\tools\tweeGo\tweego_win64.exe" --head "%~dp0qsrc2tw\twine-code\misc\head.txt" -o "%~dp0glife.html" "%~dp0qsrc2tw\twine-code"
  18. ) else (
  19. CALL "%~dp0qsrc2tw\tools\tweeGo\tweego_win86.exe" --head "%~dp0qsrc2tw\twine-code\misc\head.txt" -o "%~dp0glife.html" "%~dp0qsrc2tw\twine-code"
  20. )
  21. @ECHO ON