forked from gameplay3d/gameplay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.bat
26 lines (26 loc) · 1.48 KB
/
setup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@echo off
rem
rem setup.bat
rem
rem download + install: premake-<platform>.zip -> _deps
set install_path=%cd%\_deps
set package_url=https://github.com/gameplay3d/gameplay-deps/releases/download/v4.0.0/
set filename=premake-5.0.0-windows
set zipfile=%filename%.zip
if not exist %install_path% mkdir %install_path%
echo Downloading %prefix%%zipfile%...
powershell -Command "([Net.ServicePointManager]::SecurityProtocol=\"tls12, tls11, tls\") -AND ($ProgressPreference='SilentlyContinue') -AND (Invoke-WebRequest '%package_url%/%filename%.zip' -OutFile '%filename%.zip') | Out-Null"
echo Extracting %filename%.zip... please standby...
powershell -Command "Expand-Archive %filename%.zip -Force -DestinationPath %install_path%"
powershell -Command "Remove-Item %filename%.zip -Force"
rem download + install: gameplay-deps-<platform>.zip -> _deps
set package_url=https://github.com/gameplay3d/gameplay/releases/download/v4.0.0/
set filename=gameplay-deps-windows
set zipfile=%filename%.zip
if not exist %install_path% mkdir %install_path%
echo Downloading %prefix%%zipfile%...
powershell -Command "([Net.ServicePointManager]::SecurityProtocol=\"tls12, tls11, tls\") -AND ($ProgressPreference='SilentlyContinue') -AND (Invoke-WebRequest '%package_url%/%filename%.zip' -OutFile '%filename%.zip') | Out-Null"
echo Extracting %filename%.zip... please standby...
powershell -Command "Expand-Archive %filename%.zip -Force -DestinationPath %install_path%"
powershell -Command "Remove-Item %filename%.zip -Force"
echo Done.