-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinstall.bat
More file actions
21 lines (18 loc) · 709 Bytes
/
install.bat
File metadata and controls
21 lines (18 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@ECHO OFF
echo This script will install SG+'s script dependencies and create a virtual environment for you.
echo If you have not installed Python 3.12, please exit the script and install it from https://python.org
choice /m "Have you installed Python 3.12? "
if %errorlevel% equ 1 goto confirmed
if %errorlevel% equ 2 goto request_install
:confirmed
echo Creating venv...
if exist ".venv" rmdir /S /Q .venv
call python -m venv .venv
echo Installing dependencies...
.venv\Scripts\python.exe -m pip install -r requirements.txt
echo SG+ install successful. Happy signalling!
pause
exit
:request_install
echo You have indicated you have not installed Python 3.12. Please do so, then run the script again.
PAUSE