From aaa45aee9904e292599b88710733594a6a348b75 Mon Sep 17 00:00:00 2001 From: Exil Productions Date: Sat, 29 Nov 2025 17:25:30 +0100 Subject: [PATCH] Create build.sh --- build.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..bb88727 --- /dev/null +++ b/build.sh @@ -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..."