fix(workflows): refine macOS build workflow to improve app bundle detection and error handling
All checks were successful
Test macOS Build Action / test-macos-build (push) Successful in 32m27s

This commit is contained in:
Ozgur 2025-04-14 16:35:53 +02:00
parent 567ef909f8
commit b60ed26574
No known key found for this signature in database
GPG Key ID: 66CDF27505A35546

View File

@ -45,7 +45,6 @@ jobs:
# Find the app bundle # Find the app bundle
- name: Find app bundle - name: Find app bundle
run: | run: |
if [ -z "$APP_PATH" ]; then
# First check Saved/StagedBuilds directory - where Unreal often places built apps # First check Saved/StagedBuilds directory - where Unreal often places built apps
echo "Checking Saved/StagedBuilds directory..." echo "Checking Saved/StagedBuilds directory..."
APP_PATHS=$(find ./Saved/StagedBuilds -type d -name "*.app" 2>/dev/null) APP_PATHS=$(find ./Saved/StagedBuilds -type d -name "*.app" 2>/dev/null)
@ -77,15 +76,15 @@ jobs:
echo "Using app bundle: $MAIN_APP_PATH" echo "Using app bundle: $MAIN_APP_PATH"
echo "APP_PATH=$MAIN_APP_PATH" >> "$GITHUB_ENV" echo "APP_PATH=$MAIN_APP_PATH" >> "$GITHUB_ENV"
else
echo "App path already set: $APP_PATH"
fi
# Make sure app exists # Make sure app exists - using local variable
if [ ! -d "$APP_PATH" ]; then if [ ! -d "$MAIN_APP_PATH" ]; then
echo "ERROR: App bundle not found at $APP_PATH!" echo "ERROR: App bundle not found at $MAIN_APP_PATH!"
exit 1 exit 1
fi fi
# Export APP_PATH for next steps to use
echo "APP_PATH=$MAIN_APP_PATH" >> "$GITHUB_ENV"
shell: bash shell: bash
# Use the macos-notarize action to sign and notarize the app # Use the macos-notarize action to sign and notarize the app