fix(actions): update comment for disabling local automatic code signing in LuckyWorld.Target.cs
Some checks failed
Test macOS Build Action / test-macos-build (push) Failing after 14m8s
Some checks failed
Test macOS Build Action / test-macos-build (push) Failing after 14m8s
This commit is contained in:
parent
4a71488bea
commit
cdc8f67953
@ -9,7 +9,14 @@ public class LuckyWorldTarget : TargetRules
|
|||||||
{
|
{
|
||||||
Type = TargetType.Game;
|
Type = TargetType.Game;
|
||||||
DefaultBuildSettings = BuildSettingsVersion.V5;
|
DefaultBuildSettings = BuildSettingsVersion.V5;
|
||||||
|
|
||||||
|
// Fix for "Targets with a unique build environment cannot be built with an installed engine"
|
||||||
bOverrideBuildEnvironment = true;
|
bOverrideBuildEnvironment = true;
|
||||||
|
BuildEnvironment = TargetBuildEnvironment.Shared;
|
||||||
|
|
||||||
|
// Ensure proper build configuration
|
||||||
|
bUseLoggingInShipping = true;
|
||||||
|
bShouldCompileAsDLL = false;
|
||||||
|
|
||||||
ExtraModuleNames.AddRange( new string[] { "LuckyWorld" } );
|
ExtraModuleNames.AddRange( new string[] { "LuckyWorld" } );
|
||||||
|
|
||||||
@ -28,8 +35,8 @@ public class LuckyWorldTarget : TargetRules
|
|||||||
GlobalDefinitions.Add("APP_BUNDLE_NAME=LuckyWorld");
|
GlobalDefinitions.Add("APP_BUNDLE_NAME=LuckyWorld");
|
||||||
GlobalDefinitions.Add("APP_BUNDLE_DISPLAY_NAME=LuckyWorld");
|
GlobalDefinitions.Add("APP_BUNDLE_DISPLAY_NAME=LuckyWorld");
|
||||||
|
|
||||||
// Disable automatic code signing
|
// Don't use local automatic code signing for builds
|
||||||
bDisableAutomaticCodeSigning = true;
|
// bDisableAutomaticCodeSigning property is not available in UE 5.5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,13 @@ public class LuckyWorldEditorTarget : TargetRules
|
|||||||
{
|
{
|
||||||
Type = TargetType.Editor;
|
Type = TargetType.Editor;
|
||||||
DefaultBuildSettings = BuildSettingsVersion.V5;
|
DefaultBuildSettings = BuildSettingsVersion.V5;
|
||||||
|
|
||||||
|
// Fix for "Targets with a unique build environment cannot be built with an installed engine"
|
||||||
bOverrideBuildEnvironment = true;
|
bOverrideBuildEnvironment = true;
|
||||||
|
BuildEnvironment = TargetBuildEnvironment.Shared;
|
||||||
|
|
||||||
|
// Ensure proper build configuration
|
||||||
|
bShouldCompileAsDLL = false;
|
||||||
|
|
||||||
ExtraModuleNames.AddRange( new string[] { "LuckyWorld" } );
|
ExtraModuleNames.AddRange( new string[] { "LuckyWorld" } );
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -e # Exit on any error
|
||||||
|
|
||||||
# Get the user's home directory
|
# Get the user's home directory
|
||||||
USER_HOME="$HOME"
|
USER_HOME="$HOME"
|
||||||
@ -27,44 +28,43 @@ echo "Project root: $PROJECT_ROOT"
|
|||||||
echo "Project file: $PROJECT_FILE"
|
echo "Project file: $PROJECT_FILE"
|
||||||
echo "Archive directory: $ARCHIVE_DIR"
|
echo "Archive directory: $ARCHIVE_DIR"
|
||||||
|
|
||||||
# Clean up previous build artifacts
|
# More selective cleanup - don't remove DerivedDataCache
|
||||||
rm -rf DerivedDataCache Intermediate Binaries Saved
|
echo "🧹 Cleaning build artifacts..."
|
||||||
|
rm -rf Intermediate/Build/Mac Saved/Cooked
|
||||||
|
mkdir -p "$ARCHIVE_DIR"
|
||||||
|
|
||||||
# Generate project files
|
# Generate project files
|
||||||
echo "📝 Generating project files..."
|
echo "📝 Generating project files..."
|
||||||
"$UE_ROOT/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh" -project="$PROJECT_FILE" -game -engine
|
"$UE_ROOT/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh" -project="$PROJECT_FILE" -game -engine
|
||||||
|
|
||||||
# Run the build command
|
# Run the build command with simplified parameters and more diagnostics
|
||||||
echo "🔨 Starting build process..."
|
echo "🔨 Starting build process..."
|
||||||
"$UE_UAT" -ScriptsForProject="$PROJECT_FILE" Turnkey \
|
"$UE_UAT" -ScriptsForProject="$PROJECT_FILE" BuildCookRun \
|
||||||
-command=VerifySdk \
|
-project="$PROJECT_FILE" \
|
||||||
-platform=Mac \
|
-platform=Mac \
|
||||||
-UpdateIfNeeded \
|
-clientconfig=Shipping \
|
||||||
-EditorIO \
|
|
||||||
-EditorIOPort=59484 \
|
|
||||||
-project="$PROJECT_FILE" \
|
|
||||||
BuildCookRun \
|
|
||||||
-nop4 \
|
|
||||||
-utf8output \
|
|
||||||
-cook \
|
|
||||||
-project="$PROJECT_FILE" \
|
|
||||||
-target=LuckyWorld \
|
-target=LuckyWorld \
|
||||||
-unrealexe="$UE_EDITOR" \
|
-build \
|
||||||
-platform=Mac \
|
-cook -iterate -CookOnTheFly -CookMapsOnly \
|
||||||
-installed \
|
|
||||||
-stage \
|
-stage \
|
||||||
-skipStage=SignExecutables \
|
-skipStage=SignExecutables \
|
||||||
-archive \
|
|
||||||
-package \
|
|
||||||
-build \
|
|
||||||
-iterativecooking \
|
|
||||||
-pak \
|
-pak \
|
||||||
-iostore \
|
|
||||||
-compressed \
|
-compressed \
|
||||||
-prereqs \
|
-prereqs \
|
||||||
|
-iostore \
|
||||||
|
-package \
|
||||||
|
-archive \
|
||||||
-archivedirectory="$ARCHIVE_DIR" \
|
-archivedirectory="$ARCHIVE_DIR" \
|
||||||
-CrashReporter \
|
-verbose \
|
||||||
-clientconfig=Shipping
|
-ddc=DerivedDataBackendGraph \
|
||||||
|
-CrashReporter
|
||||||
|
|
||||||
|
# Check for errors in the build process
|
||||||
|
BUILD_STATUS=$?
|
||||||
|
if [ $BUILD_STATUS -ne 0 ]; then
|
||||||
|
echo "❌ ERROR: Build command failed with exit code $BUILD_STATUS"
|
||||||
|
exit $BUILD_STATUS
|
||||||
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "🔍 Looking for built application..."
|
echo "🔍 Looking for built application..."
|
||||||
@ -74,9 +74,11 @@ APP_PATH=$(find "$ARCHIVE_DIR" -name "*.app" -type d | head -n 1)
|
|||||||
if [ -z "$APP_PATH" ] || [ ! -d "$APP_PATH" ]; then
|
if [ -z "$APP_PATH" ] || [ ! -d "$APP_PATH" ]; then
|
||||||
echo "❌ ERROR: Build failed or did not produce an app bundle!"
|
echo "❌ ERROR: Build failed or did not produce an app bundle!"
|
||||||
echo "Check the logs above for build errors."
|
echo "Check the logs above for build errors."
|
||||||
echo "Common issues:"
|
|
||||||
echo " - 'Targets with a unique build environment cannot be built with an installed engine'"
|
# List all files in the archive directory to help debug
|
||||||
echo " Fix: Use bOverrideBuildEnvironment = true instead of BuildEnvironment = TargetBuildEnvironment.Unique"
|
echo "Contents of archive directory:"
|
||||||
|
find "$ARCHIVE_DIR" -type f -o -type d | sort
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user