-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
38 lines (32 loc) · 797 Bytes
/
Copy pathinstall.bat
File metadata and controls
38 lines (32 loc) · 797 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
@echo off
REM Install FileShare's Python dependencies. Run once on a fresh PC.
cd /d "%~dp0"
where python >nul 2>nul
if errorlevel 1 (
echo [ERROR] Python is not on PATH.
echo Install Python 3 from https://www.python.org/downloads/ and check
echo "Add Python to PATH" during install, then run this script again.
pause
exit /b 1
)
echo Using Python:
python --version
echo.
echo Upgrading pip...
python -m pip install --upgrade pip
if errorlevel 1 (
echo [ERROR] pip upgrade failed.
pause
exit /b 1
)
echo.
echo Installing dependencies from requirements.txt...
python -m pip install -r requirements.txt
if errorlevel 1 (
echo [ERROR] Dependency install failed.
pause
exit /b 1
)
echo.
echo Done. You can now run start.bat to launch FileShare.
pause