forked from box-archived/vlive-backup-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-windows.bat
52 lines (42 loc) · 854 Bytes
/
run-windows.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
chcp 65001
@echo off
SET CURDIR=%~dp0
SET CURDRIVE=%CURDIR:~0,2%
%CURDRIVE%
CD %CURDIR%
for /f "tokens=* USEBACKQ" %%a in (`python --version`) DO (
SET PV=%%a
)
)
SET PV=%PV:~0,8%
CLS
IF NOT "%PV%" == "Python 3" (
ECHO Python 3.x not found
ECHO Please install python
ECHO.
pause
start https://www.python.org/downloads/
exit
)
TITLE VLIVE-BACKUP-BOT
mode con: cols=60 lines=9
CLS
echo.
echo ======================VLIVE-BACKUP-BOT======================
echo.
echo.
echo LOADING...
echo.
echo.
echo ============================================================
IF EXIST venv (
rmdir /S /Q venv
)
python -m venv venv
venv\Scripts\python -m pip install -q -q -q --upgrade pip
venv\Scripts\python -m pip install -q -q -q -r requirements.txt
CLS
mode con: cols=150 lines=50
venv\Scripts\python core.py
rmdir /S /Q venv
PAUSE