fix prod running on linux

This commit is contained in:
KingKDot
2026-03-06 13:31:34 -06:00
parent d0c4c1d750
commit 7798337b3b
2 changed files with 36 additions and 5 deletions
+5 -1
View File
@@ -26,7 +26,11 @@ echo "[build] compiling Linux production executable..."
echo "[build] copying Overlord-Client source for runtime builds..."
mkdir -p "$SERVER_DIR/dist/Overlord-Client"
rsync -a --exclude='build' --exclude='.git' --exclude='.vscode' "$ROOT/Overlord-Client/" "$SERVER_DIR/dist/Overlord-Client/" 2>/dev/null \
|| { cp -a "$ROOT/Overlord-Client" "$SERVER_DIR/dist/Overlord-Client" && rm -rf "$SERVER_DIR/dist/Overlord-Client/build" "$SERVER_DIR/dist/Overlord-Client/.git" "$SERVER_DIR/dist/Overlord-Client/.vscode"; }
|| {
rm -rf "$SERVER_DIR/dist/Overlord-Client"
cp -a "$ROOT/Overlord-Client" "$SERVER_DIR/dist/Overlord-Client"
rm -rf "$SERVER_DIR/dist/Overlord-Client/build" "$SERVER_DIR/dist/Overlord-Client/.git" "$SERVER_DIR/dist/Overlord-Client/.vscode"
}
echo "[server] starting compiled executable..."
PORT="${PORT:-5173}" \