-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
29 lines (25 loc) · 846 Bytes
/
install.bat
File metadata and controls
29 lines (25 loc) · 846 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
@echo off
REM This will check if Python is installed
where python > nul 2> nul
IF %ERRORLEVEL% NEQ 0 (
echo Python3 is not installed. Please install Python from https://www.python.org/downloads/.
exit /b 1
)
REM Install required dependencies
echo Installing dependencies...
echo No dependencies.
REM Clone the repository if it doesn't exist
IF NOT EXIST "ModListGenerator" (
echo Cloning ModListGenerator repository...
git clone https://github.com/TRC-Loop/ModListGenerator.git
) ELSE (
REM If repo exists, pull the latest changes
echo Updating ModListGenerator repository...
cd ModListGenerator
git pull origin main
cd ..
)
REM Add modlistgen to PATH
echo Creating modlistgen command...
setx PATH "%PATH%;%cd%\ModListGenerator\src"
echo Installation complete! You can now use modlistgen in your terminal.