forked from CIPIX-off/CodeBreak
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
42 lines (39 loc) · 1.05 KB
/
install.bat
File metadata and controls
42 lines (39 loc) · 1.05 KB
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
@echo off
setlocal
ver | find "Windows" > nul
if %errorlevel% == 0 (
call :windows
) else (
call :other
)
exit /b
:windows
echo Installing Python dependencies for windows...
python -m pip install -r requirements.txt
if %errorlevel% neq 0 (
echo -------------------------------------------------
echo Failed to install Python dependencies. Pausing...
pause
)
echo ----------------------------------------------
echo Python dependencies are successfully installed
pause
echo CodeBreak startup...
python CodeBreak.py
exit /b
:other
bash -c '
echo "Installing Python dependencies for other operating systems..."
python3 -m pip install -r requirements.txt
if [ $? -ne 0 ]; then
echo "-------------------------------------------------"
echo "Failed to install Python dependencies. Pausing..."
read -p "Press [Enter] key to continue..."
fi
echo "----------------------------------------------"
echo "Python dependencies are successfully installed"
read -p "Press [Enter] key to continue..."
echo "CodeBreak startup..."
python3 CodeBreak.py
'
exit /b