lyra_game_ue/linux_build.sh
Goran Lazarevski b65e388284
Some checks failed
Unreal Engine Build / macos-build (push) Failing after 29s
Unreal Engine Build / build-and-release (push) Failing after 1m19s
Link artifact in release
2025-04-01 19:26:21 +02:00

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"