From 3a4f6c74b19320667885841e6e5e7f86a4e2c9a1 Mon Sep 17 00:00:00 2001 From: Exil Productions Date: Tue, 11 Nov 2025 23:03:59 +0100 Subject: [PATCH] Add Build Batch File --- ModInfo.cs | 2 +- build.bat | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 build.bat diff --git a/ModInfo.cs b/ModInfo.cs index e468ec2..8d500a8 100644 --- a/ModInfo.cs +++ b/ModInfo.cs @@ -7,7 +7,7 @@ namespace VMM internal class ModInfo { public const string Name = "VigilModManager"; - public const string Version = "1.0.0"; + public const string Version = "1.0.1"; public const string Author = "Exil_S"; public const string DownloadLink = "https://github.com/ExilProductions/VigilModManager"; } diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..b9f52ce --- /dev/null +++ b/build.bat @@ -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 \ No newline at end of file