forked from Smug246/Luna-Grabber
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.bat
29 lines (25 loc) · 875 Bytes
/
setup.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
@echo off
color 5
title Installing Dependencies...
:: Check if Python 3.11.1 is installed
python --version | findstr "3.11"
if %errorlevel%==0 (
echo Python 3.11 is already installed
) else (
echo Python 3.11 is not installed. Downloading...
curl -L -o python-3.11.exe https://www.python.org/ftp/python/3.11.0/python-3.11.0-amd64.exe
echo Installing Python 3.11...
start /wait python-3.11.exe /quiet InstallAllUsers=1 Include_test=0
del python-3.11.exe
echo Python 3.11 has been installed
)
:: Change directory to current directory
cd /d "%~dp0"
::echo Current directory: %CD% :: To debug if you are getting requrirements.txt not found error
:: Install requirements
echo Installing Requirements...
python -m pip install -r requirements.txt
:: Check for updates
cd tools
echo Checking for updates...
python update.py