forked from gameplay3d/gameplay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·31 lines (31 loc) · 939 Bytes
/
setup.sh
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
27
28
29
30
31
#!/bin/bash
#
# ./setup.sh
#
if [ "$(uname)" == "Darwin" ]; then
platform=macos
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
platform=linux
else
platform=windows
fi
mkdir -p _deps
# download + install: premake-<platform>.zip -> _deps
package_url=https://github.com/gameplay3d/gameplay-deps/releases/download/v4.0.0
filename=premake-5.0.0-$platform.zip
echo Downloading $filename from $package_url...
curl -# -LO $package_url/$filename
echo Extracting $filename... please standby...
unzip -q $filename -d _deps
echo Cleaning up...
rm $filename
# download + install: gameplay-deps-<platform>.zip -> _deps
package_url=https://github.com/gameplay3d/gameplay/releases/download/v4.0.0
filename=gameplay-deps-$platform.zip
echo Downloading $filename from $prefix...
curl -# -LO $package_url/$filename
echo Extracting $filename... please standby...
unzip -q $filename -d _deps
echo Cleaning up...
rm $filename
echo Done.