Fix unreal path
This commit is contained in:
parent
557384a318
commit
7543b2962f
@ -59,17 +59,19 @@ jobs:
|
||||
|
||||
- name: Setup Unreal Engine
|
||||
run: |
|
||||
# Check if Unreal Engine is installed
|
||||
if [ ! -d "/Applications/Unreal Engine.app" ]; then
|
||||
# Use the correct path where Unreal Engine is installed
|
||||
UE_PATH="/Users/Shared/Epic Games/UE_5.5"
|
||||
|
||||
if [ ! -d "$UE_PATH" ]; then
|
||||
echo "Error: Unreal Engine is not installed in the expected location"
|
||||
echo "Please ensure Unreal Engine is installed at /Applications/Unreal Engine.app"
|
||||
echo "Please ensure Unreal Engine is installed at $UE_PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set environment variables for Unreal Engine (with proper escaping)
|
||||
echo "UE_ROOT=/Applications/Unreal\ Engine.app/Contents/MacOS" >> $GITHUB_ENV
|
||||
echo "Using Unreal Engine 5.5.4"
|
||||
|
||||
# Set environment variable with the correct Engine path
|
||||
echo "UE_ROOT=$UE_PATH/Engine" >> $GITHUB_ENV
|
||||
echo "Using Unreal Engine 5.5"
|
||||
|
||||
- name: Build Unreal Project
|
||||
run: |
|
||||
# Debug information
|
||||
@ -77,26 +79,27 @@ jobs:
|
||||
echo "macOS Version:"
|
||||
sw_vers
|
||||
echo "=== Unreal Engine Information ==="
|
||||
ls -la "/Applications/Unreal Engine.app/Contents/MacOS"
|
||||
ls -la "$UE_ROOT/Build/BatchFiles"
|
||||
echo "=== Project Information ==="
|
||||
|
||||
# Source the environment
|
||||
source "$GITHUB_ENV"
|
||||
|
||||
# Find your .uproject file (adjust path as needed)
|
||||
UPROJECT_PATH=$(find . -name "*.uproject" -type f | head -1)
|
||||
if [ -z "$UPROJECT_PATH" ]; then
|
||||
echo "Error: Could not find .uproject file"
|
||||
exit 1
|
||||
fi
|
||||
echo "Building project: $UPROJECT_PATH"
|
||||
|
||||
# Verify UE_ROOT is correctly set
|
||||
echo "Using Unreal Engine at: $UE_ROOT"
|
||||
if [ ! -f "$UE_ROOT/Engine/Build/BatchFiles/RunUAT.sh" ]; then
|
||||
echo "Error: RunUAT.sh not found at $UE_ROOT/Engine/Build/BatchFiles/RunUAT.sh"
|
||||
if [ ! -f "$UE_ROOT/Build/BatchFiles/RunUAT.sh" ]; then
|
||||
echo "Error: RunUAT.sh not found at $UE_ROOT/Build/BatchFiles/RunUAT.sh"
|
||||
echo "Please check UE_ROOT path"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Use Unreal Automation Tool to build the project
|
||||
"$UE_ROOT/Engine/Build/BatchFiles/RunUAT.sh" BuildCookRun \
|
||||
chmod +x "$UE_ROOT/Build/BatchFiles/RunUAT.sh"
|
||||
"$UE_ROOT/Build/BatchFiles/RunUAT.sh" BuildCookRun \
|
||||
-project="$UPROJECT_PATH" \
|
||||
-noP4 \
|
||||
-platform=Mac \
|
||||
|
Loading…
x
Reference in New Issue
Block a user