Files
UnrealPrototyping/Scripts/build.sh
T
Rainer LeitandClaude Fable 5.1 4f2c55cd2a Step 1: the Salty project, two modules, tests and the gym
Salty.uproject (UE 5.8) from the Third Person template with class redirects, the SaltyCore and Salty modules,
the three build targets, USaltyAssetManager calling InitGlobalData, Config/Tags with the 23 root namespaces,
Scripts/run-tests.sh, build.sh and Authoring/create_gym.py, L_Gym, Git LFS attributes and the placeholder test.
Template variants kept as reference (D-41). The four Fab packs stay out of the repository for now (~10 GB).
The editor serves the engine MCP plugin on 127.0.0.1:8000 through DefaultEditorPerProjectUserSettings.ini.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 20:10:43 +03:00

23 lines
1.2 KiB
Bash

#!/usr/bin/env bash
# Builds and packages the game through UAT. Usage: Scripts/build.sh [Platform] [Configuration] [-server]
# Scripts/build.sh Win64 Development
# -server needs the engine built from source (Decisions OD-04); the launcher build refuses the Server target.
set -u
UE_ROOT="${UE_ROOT:-D:/UE_5.8}"
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
PLATFORM="${1:-Win64}"
CONFIG="${2:-Development}"
TARGET_ARGS=""
if [[ "${3:-}" == "-server" || "${1:-}" == "-server" ]]; then
if [ ! -f "$UE_ROOT/Engine/Build/SourceDistribution.txt" ]; then
echo "The engine at $UE_ROOT is a launcher build; it cannot compile SaltyServer (OD-04). Use the editor's Run Dedicated Server." >&2
exit 1
fi
TARGET_ARGS="-server -serverplatform=$PLATFORM -noclient"
fi
PROJECT_W="$(cygpath -w "$ROOT/Salty.uproject" 2>/dev/null || echo "$ROOT/Salty.uproject")"
ARCHIVE_W="$(cygpath -w "$ROOT/Build/$PLATFORM" 2>/dev/null || echo "$ROOT/Build/$PLATFORM")"
"$UE_ROOT/Engine/Build/BatchFiles/RunUAT.bat" BuildCookRun -project="$PROJECT_W" -platform="$PLATFORM" \
-clientconfig="$CONFIG" -serverconfig="$CONFIG" -build -cook -stage -pak -archive -archivedirectory="$ARCHIVE_W" \
-nop4 -utf8output $TARGET_ARGS