-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetup.bat
More file actions
39 lines (33 loc) · 794 Bytes
/
Setup.bat
File metadata and controls
39 lines (33 loc) · 794 Bytes
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
@echo off
setlocal
:: Check if python is available
where python >nul 2>nul
if %errorlevel% neq 0 (
echo [ERROR] Python is not installed or not in PATH!
goto failure
)
:: Check if pip is available
where pip >nul 2>nul
if %errorlevel% neq 0 (
echo [WARNING] pip is not installed or not in PATH!
)
:: Check if Python is version 3.x
for /f "tokens=2 delims=. " %%v in ('python -V 2^>nul') do (
if %%v LSS 3 (
echo [ERROR] Python version is not 3.x!
goto failure
)
)
:: If all checks pass, run the script
echo Python 3 detected...
echo Install colorama module for colored console text...
pip install colorama
pip install requests
echo Run build script...
python Engine/Auto/build.py
goto done
:failure
echo Script terminated due to errors.
pause
:done
pause