From 8495249cb1c9f74217d8ccff985c483dee646ebe Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 23 Nov 2025 17:19:24 +0000 Subject: [PATCH] Add build script for command line compilation --- build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f63dc71 --- /dev/null +++ b/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Set your 7DTD installation path +GAME_DIR="${GAME_DIR:-$HOME/.local/share/7DaysToDie}" + +mcs -target:library \ + -out:BotCommandMod.dll \ + -r:"$GAME_DIR/7DaysToDie_Data/Managed/Assembly-CSharp.dll" \ + -r:"$GAME_DIR/7DaysToDie_Data/Managed/UnityEngine.CoreModule.dll" \ + -r:"$GAME_DIR/7DaysToDie_Data/Managed/0Harmony.dll" \ + Harmony/BotCommandPatch.cs