-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInitialSetup_x64.bat
214 lines (192 loc) · 6.31 KB
/
InitialSetup_x64.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
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
@echo off
setlocal
::Clean up the old build folder
IF EXIST build (
del /f /s /q build > nul
rmdir /s /q build
)
::Clean up the old deps folder
IF EXIST deps (
del /f /s /q deps > nul
rmdir /s /q deps
)
:: Fetch dependencies in the "deps" folders
mkdir deps
pushd deps
:: Download and unzip the prebuilt libs
echo "Downloading SDL2..."
curl https://www.libsdl.org/release/SDL2-2.0.10-win32-x64.zip --output sdl2.zip
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading SDL2-2.0.10-win32-x64.zip"
goto failure
)
7z e sdl2.zip -obuild/debug -y -r -spf
IF %ERRORLEVEL% NEQ 0 (
echo "Error unzipping SDL2-2.0.10-win32-x64.zip"
goto failure
)
echo "Downloading SDL2-devel..."
curl https://www.libsdl.org/release/SDL2-devel-2.0.10-VC.zip --output sdl2-devel.zip
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading SDL2-devel-2.0.10-VC.zip"
goto failure
)
7z e sdl2-devel.zip -y -r -spf
IF %ERRORLEVEL% NEQ 0 (
echo "Error unzipping SDL2-devel-2.0.10-VC.zip"
goto failure
)
echo "Downloading SDL2-image..."
curl https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.5-win32-x64.zip --output sdl2img.zip
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading SDL2_image-2.0.5-win32-x64.zip"
goto failure
)
7z e sdl2img.zip -obuild/debug -y -r -spf
IF %ERRORLEVEL% NEQ 0 (
echo "Error unzipping SDL2_image-2.0.5-win32-x64.zip"
goto failure
)
echo "Downloading SDL2-image..."
curl https://www.libsdl.org/projects/SDL_image/release/SDL2_image-devel-2.0.5-VC.zip --output sdl2img-devel.zip
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading SDL2_image-devel-2.0.5-VC.zip"
goto failure
)
7z e sdl2img-devel.zip -y -r -spf
IF %ERRORLEVEL% NEQ 0 (
echo "Error unzipping SDL2_image-devel-2.0.5-VC.zip"
goto failure
)
echo "Downloading SDL2-ttf..."
curl https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.15-win32-x64.zip --output sdl2ttf.zip
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading SDL2_ttf-2.0.15-win32-x64.zip"
goto failure
)
7z e sdl2ttf.zip -obuild/debug -y -r -spf
IF %ERRORLEVEL% NEQ 0 (
echo "Error unzipping SDL2_ttf-2.0.15-win32-x64.zip"
goto failure
)
echo "Downloading SDL2-ttf-devel..."
curl https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-devel-2.0.15-VC.zip --output sdl2ttf-devel.zip
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading SDL2_ttf-devel-2.0.15-VC.zip"
goto failure
)
7z e sdl2ttf-devel.zip -y -r -spf
IF %ERRORLEVEL% NEQ 0 (
echo "Error unzipping SDL2_ttf-devel-2.0.15-VC.zip"
goto failure
)
echo "Downloading OpenCV..."
curl -L /~https://github.com/opencv/opencv/releases/download/4.10.0/opencv-4.10.0-windows.exe > opencv-4.10.0-windows.exe
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading opencv-4.10.0-windows.exe"
goto failure
)
opencv-4.10.0-windows.exe -o"." -y
IF %ERRORLEVEL% NEQ 0 (
echo "Error running self extracting zip opencv-4.10.0-windows.exe"
goto failure
)
echo "Downloading glew..."
curl -L /~https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0-win32.zip --output glew-2.2.0-win32.zip
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading glew-2.2.0-win32.zip"
goto failure
)
7z e glew-2.2.0-win32.zip -y -r -spf
IF %ERRORLEVEL% NEQ 0 (
echo "Error unzipping glew-2.2.0-win32.zip"
goto failure
)
echo "Downloading Spout2"
curl -L /~https://github.com/leadedge/Spout2/archive/refs/tags/2.007h.zip --output SPOUT.zip
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading SPOUT.zip"
goto failure
)
7z e SPOUT.zip -y -r -spf
IF %ERRORLEVEL% NEQ 0 (
echo "Error unzipping SPOUT.zip"
goto failure
)
echo "Downloading FFMpeg-Shared"
curl -L /~https://github.com/GyanD/codexffmpeg/releases/download/4.4.1/ffmpeg-4.4.1-full_build-shared.7z --output ffmpeg-4.4.1-full_build-shared.7z
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading ffmpeg-4.4.1-full_build-shared.7z"
goto failure
)
7z e ffmpeg-4.4.1-full_build-shared.7z -y -r -spf
IF %ERRORLEVEL% NEQ 0 (
echo "Error unzipping ffmpeg-4.4.1-full_build-shared.7z"
goto failure
)
echo "Downloading gstreamer-runtime installer"
curl -L https://gstreamer.freedesktop.org/data/pkg/windows/1.24.11/mingw/gstreamer-1.0-mingw-x86_64-1.24.11.msi --output gstreamer-1.0-mingw-x86_64-1.24.11.msi
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading gstreamer-1.0-mingw-x86_64-1.24.11.msi"
goto failure
)
msiexec /i gstreamer-1.0-mingw-x86_64-1.24.11.msi /qb
IF %ERRORLEVEL% NEQ 0 (
echo "Error installing gstreamer-runtime installer"
goto failure
)
echo "Downloading gstreamer-devel installer"
curl -L https://gstreamer.freedesktop.org/data/pkg/windows/1.24.11/mingw/gstreamer-1.0-devel-mingw-x86_64-1.24.11.msi --output gstreamer-1.0-devel-mingw-x86_64-1.24.11.msi
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading gstreamer-1.0-devel-mingw-x86_64-1.24.11.msi"
goto failure
)
msiexec /i gstreamer-1.0-devel-mingw-x86_64-1.24.11.msi /qb
IF %ERRORLEVEL% NEQ 0 (
echo "Error installing gstreamer-devel installer"
goto failure
)
echo "Downloading easy_profiler..."
curl -L /~https://github.com/yse/easy_profiler/releases/download/v2.1.0/easy_profiler-v2.1.0-msvc15-win64.zip --output easy_profiler-v2.1.0-msvc15-win64.zip
IF %ERRORLEVEL% NEQ 0 (
echo "Error easy_profiler-v2.1.0-msvc15-win64.zip"
goto failure
)
7z e easy_profiler-v2.1.0-msvc15-win64.zip -y -r -spf -oeasy_profiler
IF %ERRORLEVEL% NEQ 0 (
echo "Error unzipping easy_profiler-v2.1.0-msvc15-win64.zip"
goto failure
)
:: Download pre-compiled FreeType libraries
echo "Downloading FreeType Binaries..."
curl -L /~https://github.com/ubawurinna/freetype-windows-binaries/archive/refs/tags/v2.10.4.zip --output freetype-windows-binaries-2.10.4.zip
IF %ERRORLEVEL% NEQ 0 (
echo "Error FreeType.zip"
goto failure
)
7z e freetype-windows-binaries-2.10.4.zip -y -r -spf
IF %ERRORLEVEL% NEQ 0 (
echo "Error unzipping FreeType.zip"
goto failure
)
:: Download pre-compiled Refureku libraries
echo "Downloading Refureku..."
curl -L /~https://github.com/MikanXR/Refureku/releases/download/v2.2.1/rfk_v2.2.1_windows.zip --output rfk_v2.2.1_windows.zip
IF %ERRORLEVEL% NEQ 0 (
echo "Error downloading rfk_v2.2.1_windows.zip"
goto failure
)
7z e rfk_v2.2.1_windows.zip -y -r -spf -orfk
IF %ERRORLEVEL% NEQ 0 (
echo "Error unzipping rfk_v2.2.1_windows.zip"
goto failure
)
:: NuGet tool used to fetch c# packages
echo "Downloading nuget..."
curl -L https://dist.nuget.org/win-x86-commandline/latest/nuget.exe --output nuget.exe
:: Exit back out of the deps folder
popd
EXIT /B 0
:failure
pause
EXIT /B 1