Add build script for command line compilation

This commit is contained in:
Claude
2025-11-23 17:19:24 +00:00
parent d344ea0e1c
commit 8495249cb1

11
build.sh Executable file
View File

@@ -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