-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget-deps-mingw.sh
executable file
·62 lines (60 loc) · 2.22 KB
/
get-deps-mingw.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
echo -e "\e[34mChecking and Grabbing Missing Dependecies...\e[m"
cd bin
echo -e "\n\e[33mChecking raylib...\e[m"
if [ -d ./raylib ]; then
echo -e "\e[32;1m[✓] raylib was found!\e[m"
else
echo -e "\e[31;1m[X] raylib Was not found! \e[33mGrabbing now...\e[m"
git clone https://github.com/raysan5/raylib/
cd raylib/src
mingw32-make PLATFORM=PLATFORM_DESKTOP -j 8
echo -e "\n\e[32;1m[✓] raylib is now acquired!\e[m"
cd ../..
fi
echo -e "\n\e[33mChecking cJSON...\e[m"
if [ -d ./cJSON ]; then
echo -e "\e[32;1m[✓] cJSON was found!\e[m"
else
echo -e "\e[31;1m[X] cJSON Was not found! \e[33mGrabbing now...\e[m"
git clone https://github.com/DaveGamble/cJSON
cd cJSON
mingw32-make
echo -e "\n\e[32;1m[✓] cJSON is now acquired!\e[m"
cd ..
fi
echo -e "\n\e[33mChecking netlib.dll...\e[m"
if [ -f ../netlib.dll ]; then
echo -e "\e[32;1m[✓] netlib.dll was found!\e[m"
else
echo -e "\e[31;1m[X] netlib.dll Was not found! \e[33mGrabbing now...\e[m"
wget https://github.com/univrsal/netlib/releases/download/v0.2/netlib.0.2.win64.zip
unzip netlib.0.2.win64.zip netlib.dll
mv netlib.dll ..
rm netlib.0.2.win64.zip
echo -e "\n\e[32;1m[✓] netlib.dll is now acquired!\e[m"
fi
echo -e "\n\e[33mChecking Discord Game SDK...\e[m"
if [ -d ./discord_game_sdk ]; then
echo -e "\e[32;1m[✓] Discord Game SDK was found!\e[m"
else
echo -e "\e[31;1m[X] Discord Game SDK Was not found! \e[33mGrabbing now...\e[m"
wget https://dl-game-sdk.discordapp.net/3.2.1/discord_game_sdk.zip
unzip discord_game_sdk.zip -d discord_game_sdk
ln discord_game_sdk/lib/x86_64/discord_game_sdk.dll ../discord_game_sdk.dll
rm discord_game_sdk.zip
echo -e "\n\e[32;1m[✓] Discord Game SDK is now acquired!\e[m"
fi
echo -e "\n\e[33mBONUS: customasm...\e[m"
if [ -f ../asm/customasm/customasm ]; then
echo -e "\e[32;1m[✓] BONUS: CustomASM was found!\e[m"
else
echo -e "\e[31;1m[X] BONUS: CustomASM was not found! \e[33mGrabbing now...\e[m"
wget https://github.com/hlorenzi/customasm/releases/download/v0.13.5/customasm_win64.zip
unzip customasm_win64.zip customasm.exe
mv customasm.exe ../asm/customasm/customasm
rm customasm_win64.zip
echo -e "\n\e[32;1m[✓] customasm is now acquired!\e[m"
fi
cd ..
echo -e "\n\e[32;1m[✓] All Dependencies were acquired!\e[m"