-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.bat.dist
38 lines (32 loc) · 862 Bytes
/
start.bat.dist
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
@echo off
python3 --version >nul 2>nul || (
ECHO python3 wasn't found on this machine!
WHERE python3 >nul 2>nul
IF %ERRORLEVEL% EQU 0 (
ECHO Opening Microsoft Store for Installation...
python3
)
echo After Installation re-run this script.
exit 1;
)
python3.exe --version 2>nul | findstr /R /I /C:"^Python[ ]*[0-9]*[3-9]\." >nul 2>nul
IF %ERRORLEVEL% NEQ 0 (
echo Your Python Version is not supported! Use Python 3 or higher.
exit 1
)
IF NOT EXIST ./venv (
python3 -m venv ./venv
)
IF NOT EXIST ./venv/Scripts/activate.bat (
echo Could not find ./venv/Scripts/activate.bat!
exit 1;
)
call ./venv/Scripts/activate.bat
pip --version >nul 2>nul || (
ECHO pip wasn't found on this machine!
exit 1;
)
:: pip install --upgrade --user pip
python -m pip install --upgrade pip
pip install -r requirements.txt
python3 ./src/start.py --folder=%1