-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_update.bat
More file actions
41 lines (35 loc) · 785 Bytes
/
run_update.bat
File metadata and controls
41 lines (35 loc) · 785 Bytes
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
@echo off
echo ===== GH Release Fetch - on-demand download / update =====
echo.
rm *.html
REM Check Python
python --version > nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Python not found. Install Python 3.6 or newer.
echo Download: https://www.python.org/downloads/
echo.
pause
exit /b 1
)
echo [INFO] Python detected.
echo.
REM Install dependencies
echo [INFO] Installing dependencies...
pip install -r requirements.txt
if %errorlevel% neq 0 (
echo [ERROR] pip install failed.
pause
exit /b 1
)
echo [INFO] Dependencies OK.
echo.
REM Run updater
echo [INFO] Running auto_update.py...
python auto_update.py
if %errorlevel% neq 0 (
echo [ERROR] Update failed. See update_log.txt for details.
pause
exit /b 1
)
echo.
echo [INFO] Done.