build.bat 955 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. @Rem Copyright Epic Games, Inc. All Rights Reserved.
  2. @echo off
  3. @Rem Set script directory as working directory.
  4. pushd "%~dp0"
  5. title Building Cirrus.exe
  6. @Rem Run setup to ensure we have node and cirrus installed.
  7. call setup.bat
  8. @Rem Look for a `nexe` directory next to this script
  9. if exist nexe\ (
  10. echo nexe directory found...skipping install.
  11. ) else (
  12. echo nexe directory not found...beginning nexe install.
  13. @Rem Make `nexe directory`
  14. mkdir nexe
  15. @Rem npm init and install nexe
  16. pushd nexe
  17. call ..\node\npm init -y
  18. call ..\node\npm install nexe --save
  19. popd
  20. )
  21. @Rem Move to cirrus directory.
  22. pushd ..\..
  23. @Rem Build cirrus.exe using `nexe` using node 14.5.0 (as that is one of the latest prebuilts node versions in the nexe repo)
  24. call platform_scripts\cmd\node\npx nexe cirrus.js --target "x64-14.15.3" -r "Public/*" -r "scripts/*" -r "images/*" -r "config.json"
  25. @Rem Pop cirrus directory.
  26. popd ..\..
  27. @Rem Pop working directory
  28. popd