forked from Special-K-s-Flightsim-Bots/DCSServerBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.cmd
23 lines (23 loc) · 799 Bytes
/
update.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
echo Updating DCSSererBot to the latest version...
git pull 2>/NUL
if %ERRORLEVEL% EQU 9009 (
echo Git for Windows is not installed.
echo Please download the latest version of DCSServerBot from
echo https://github.com/Special-K-s-Flightsim-Bots/DCSServerBot/releases/latest
echo and update manually.
exit /B %ERRORLEVEL%
) else if %ERRORLEVEL% NEQ 0 (
echo Error while updating DCSServerBot. Please check the messages above.
exit /B %ERRORLEVEL%
)
if not exist venv (
python -m venv venv
)
venv\Scripts\python.exe -m pip install --upgrade pip >NUL 2>NUL
venv\Scripts\pip -q install -r requirements.txt
if %ERRORLEVEL% NEQ 0 (
echo Error while updating DCSServerBot. Please check the messages above.
exit /B %ERRORLEVEL%
)
echo DCSServerBot updated.