27 lines
734 B
Bash
27 lines
734 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Starting Linux build of LyraGame via Gitea Runner..."
|
|
|
|
# Get absolute paths
|
|
WORKSPACE_DIR=$(pwd)
|
|
PROJECT_FILE="$WORKSPACE_DIR/LyraStarterGame.uproject"
|
|
BUILD_DIR="$WORKSPACE_DIR/Builds/Linux"
|
|
UE_ROOT="${UE_ROOT:-E:/Games/UE_5.5}"
|
|
|
|
# Ensure build directory exists
|
|
mkdir -p "$BUILD_DIR"
|
|
|
|
# Run the Unreal Automation Tool with the correct target name
|
|
"$UE_ROOT/Engine/Build/BatchFiles/RunUAT.bat" BuildCookRun \
|
|
-project="$PROJECT_FILE" \
|
|
-noP4 \
|
|
-platform=Linux \
|
|
-clientconfig=Shipping \
|
|
-cook -allmaps \
|
|
-build -stage -pak -archive \
|
|
-archivedirectory="$BUILD_DIR" \
|
|
-target=LyraGame \
|
|
-unrealexe="$UE_ROOT/Engine/Binaries/Win64/UnrealEditor.exe"
|
|
|
|
echo "Linux build completed successfully" |