Add Build Batch File

This commit is contained in:
Exil Productions
2025-11-11 23:03:59 +01:00
parent b1e5cc6f25
commit 3a4f6c74b1
2 changed files with 29 additions and 1 deletions

28
build.bat Normal file
View File

@@ -0,0 +1,28 @@
@echo off
echo Building VigilModManager...
if "%VIGIL_GAME_DIR%"=="" (
echo ERROR: VIGIL_GAME_DIR environment variable is not set!
echo Please set VIGIL_GAME_DIR to your Vigil game installation directory.
echo Example: set VIGIL_GAME_DIR=C:\Games\Vigil
pause
exit /b 1
)
echo Using Vigil game directory: %VIGIL_GAME_DIR%
dotnet build VMM.csproj --configuration Release
if %ERRORLEVEL% EQU 0 (
echo.
echo Build completed successfully!
echo The mod DLL has been copied to: %VIGIL_GAME_DIR%\Mods\
) else (
echo.
echo Build failed! Please check the error messages above.
pause
exit /b 1
)
pause