setup.bat 1.4 KB

12345678910111213141516171819202122232425262728
  1. @echo off
  2. rem
  3. rem setup.bat
  4. rem
  5. rem Tools
  6. set install_path=%cd%\_tools
  7. set package_url=https://github.com/gameplay3d/gameplay-deps/releases/download/v4.0.0/
  8. set filename=premake-5.0.0-windows
  9. set zipfile=%filename%.zip
  10. if not exist %install_path% mkdir %install_path%
  11. echo Downloading %prefix%%zipfile%...
  12. powershell -Command "([Net.ServicePointManager]::SecurityProtocol=\"tls12, tls11, tls\") -AND ($ProgressPreference='SilentlyContinue') -AND (Invoke-WebRequest '%package_url%/%filename%.zip' -OutFile '%filename%.zip') | Out-Null"
  13. echo Extracting %filename%.zip... please standby...
  14. powershell -Command "Expand-Archive %filename%.zip -Force -DestinationPath %install_path%"
  15. powershell -Command "Remove-Item %filename%.zip -Force"
  16. rem Dependencies
  17. set install_path=%cd%\\_deps
  18. set package_url=https://github.com/gameplay3d/gameplay/releases/download/v4.0.0/
  19. set filename=gameplay-deps-windows
  20. set zipfile=%filename%.zip
  21. if not exist %install_path% mkdir %install_path%
  22. echo Downloading %prefix%%zipfile%...
  23. powershell -Command "([Net.ServicePointManager]::SecurityProtocol=\"tls12, tls11, tls\") -AND ($ProgressPreference='SilentlyContinue') -AND (Invoke-WebRequest '%package_url%/%filename%.zip' -OutFile '%filename%.zip') | Out-Null"
  24. echo Extracting %filename%.zip... please standby...
  25. powershell -Command "Expand-Archive %filename%.zip -Force -DestinationPath %install_path%"
  26. powershell -Command "Remove-Item %filename%.zip -Force"
  27. echo Done.