-
Notifications
You must be signed in to change notification settings - Fork 0
/
loader.bat
82 lines (72 loc) · 1.85 KB
/
loader.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
@echo off
title main python script
cls
set /p input=Do you want to check installations? (y/n):
if "%input%"=="y" (
echo Checking installed packages...
pip list | find /i "qrcode" >nul 2>&1
if not errorlevel 1 (
echo qrcode OK
) else (
echo Installing qrcode...
pip install --disable-pip-version-check qrcode >nul 2>&1
)
pip list | find /i "names" >nul 2>&1
if not errorlevel 1 (
echo names OK
) else (
echo Installing names...
pip install --disable-pip-version-check names >nul 2>&1
)
pip list | find /i "colorama" >nul 2>&1
if not errorlevel 1 (
echo colorama OK
) else (
echo Installing colorama...
pip install --disable-pip-version-check colorama >nul 2>&1
)
pip list | find /i "pyqt6" >nul 2>&1
if not errorlevel 1 (
echo pyqt6 OK
) else (
echo Installing pyqt6...
pip install --disable-pip-version-check pyqt6 >nul 2>&1
)
pip list | find /i "Flask-Cors" >nul 2>&1
if not errorlevel 1 (
echo Flask-Cors OK
) else (
echo Installing Flask-Cors...
pip install --disable-pip-version-check Flask-Cors >nul 2>&1
)
pip list | find /i "Flask" >nul 2>&1
if not errorlevel 1 (
echo Flask OK
) else (
echo Installing Flask...
pip install --disable-pip-version-check Flask >nul 2>&1
)
echo All installations complete.
cls
) else (
cls
)
:Menu
echo Choose an option:
echo 1. Run main.py
echo 2. Run gui.py
echo 3. Run extension_server.py
echo 4. Exit
set /p choice=Enter option number:
if "%choice%"=="1" (
python main.py
) else if "%choice%"=="2" (
python gui.py
) else if "%choice%"=="3" (
python extension_server.py
) else if "%choice%"=="4" (
exit /b 0
) else (
echo Invalid option. Please try again.
goto Menu
)