-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
32 lines (28 loc) · 679 Bytes
/
Copy pathsetup.bat
File metadata and controls
32 lines (28 loc) · 679 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
@echo off
setlocal enabledelayedexpansion
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo Error: Python is not installed or not in PATH
pause
exit /b 1
)
REM Check if config.json exists
if not exist "config.json" (
echo Error: config.json not found
echo Please create a config.json file with your mod names
pause
exit /b 1
)
REM Check if requests is installed
python -c "import requests" >nul 2>&1
if errorlevel 1 (
echo Installing required packages...
pip install -r requirements.txt
if errorlevel 1 (
echo Error: Failed to install requirements
pause
exit /b 1
)
)
pause