Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aaa45aee99 | ||
|
|
8c15600fa9 | ||
|
|
0aef6e59f9 | ||
|
|
f44a9ebf58 | ||
|
|
3a4f6c74b1 |
@@ -7,7 +7,7 @@ namespace VMM
|
|||||||
internal class ModInfo
|
internal class ModInfo
|
||||||
{
|
{
|
||||||
public const string Name = "VigilModManager";
|
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 Author = "Exil_S";
|
||||||
public const string DownloadLink = "https://github.com/ExilProductions/VigilModManager";
|
public const string DownloadLink = "https://github.com/ExilProductions/VigilModManager";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,10 +77,13 @@ VMM.ModRegistry.ModManager.Instance.RegisterSettings(Assembly.GetExecutingAssemb
|
|||||||
### Building
|
### Building
|
||||||
|
|
||||||
1. Set the `VIGIL_GAME_DIR` environment variable to your Vigil installation directory
|
1. Set the `VIGIL_GAME_DIR` environment variable to your Vigil installation directory
|
||||||
- Example: `setx VIGIL_GAME_DIR "E:\Steam\steamapps\common\Vigil"`
|
- Example Windows: `setx VIGIL_GAME_DIR "E:\Steam\steamapps\common\Vigil"`
|
||||||
2. Build the project using Visual Studio or `dotnet build`
|
2. Build the project using Visual Studio or `dotnet build`
|
||||||
3. The post-build event automatically copies the compiled DLL to the game's Mods folder
|
3. The post-build event automatically copies the compiled DLL to the game's Mods folder
|
||||||
|
|
||||||
|
### Need help, suggest a feature or found a bug?
|
||||||
|
Open up a issue and tag it with the fitting tags
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project is licensed under the Apache License 2.0. See LICENSE.txt for the full license text.
|
This project is licensed under the Apache License 2.0. See LICENSE.txt for the full license text.
|
||||||
|
|||||||
12
VMM.csproj
12
VMM.csproj
@@ -391,8 +391,16 @@
|
|||||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||||
<Exec Command="COPY "$(TargetPath)" "$(VIGIL_GAME_DIR)\Mods"" />
|
|
||||||
|
<!-- Windows -->
|
||||||
|
<Exec Condition="'$(OS)' == 'Windows_NT'"
|
||||||
|
Command="copy "$(TargetPath)" "$(VIGIL_GAME_DIR)\Mods"" />
|
||||||
|
|
||||||
|
<!-- Linux/Mac -->
|
||||||
|
<Exec Condition="'$(OS)' != 'Windows_NT'"
|
||||||
|
Command="cp "$(TargetPath)" "$(VIGIL_GAME_DIR)/Mods"" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
28
build.bat
Normal file
28
build.bat
Normal 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
|
||||||
32
build.sh
Executable file
32
build.sh
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# VigilModManager build script for Linux
|
||||||
|
echo "Building VigilModManager..."
|
||||||
|
|
||||||
|
# Check if VIGIL_GAME_DIR is set
|
||||||
|
if [ -z "$VIGIL_GAME_DIR" ]; then
|
||||||
|
echo "ERROR: VIGIL_GAME_DIR environment variable is not set!"
|
||||||
|
echo "Please set VIGIL_GAME_DIR to your Vigil game installation directory."
|
||||||
|
echo "Example: export VIGIL_GAME_DIR=\$HOME/.local/share/Steam/steamapps/common/Vigil"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Using Vigil game directory: $VIGIL_GAME_DIR"
|
||||||
|
|
||||||
|
# Build the project
|
||||||
|
dotnet build VMM.csproj --configuration Release
|
||||||
|
BUILD_EXIT_CODE=$?
|
||||||
|
|
||||||
|
if [ $BUILD_EXIT_CODE -eq 0 ]; then
|
||||||
|
echo
|
||||||
|
echo "Build completed successfully!"
|
||||||
|
MOD_DIR="$VIGIL_GAME_DIR/Mods"
|
||||||
|
mkdir -p "$MOD_DIR"
|
||||||
|
echo "The mod DLL has been copied to: $MOD_DIR"
|
||||||
|
else
|
||||||
|
echo
|
||||||
|
echo "Build failed! Please check the error messages above."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
read -rp "Press Enter to exit..."
|
||||||
Reference in New Issue
Block a user