fix(actions): remove redundant macOS build settings and streamline build script for improved clarity
Some checks failed
Test macOS Build Action / test-macos-build (push) Failing after 15m29s
Some checks failed
Test macOS Build Action / test-macos-build (push) Failing after 15m29s
This commit is contained in:
parent
cdc8f67953
commit
0440c10440
@ -10,14 +10,6 @@ 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;
|
|
||||||
BuildEnvironment = TargetBuildEnvironment.Shared;
|
|
||||||
|
|
||||||
// Ensure proper build configuration
|
|
||||||
bUseLoggingInShipping = true;
|
|
||||||
bShouldCompileAsDLL = false;
|
|
||||||
|
|
||||||
ExtraModuleNames.AddRange( new string[] { "LuckyWorld" } );
|
ExtraModuleNames.AddRange( new string[] { "LuckyWorld" } );
|
||||||
|
|
||||||
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
|
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
|
||||||
@ -26,17 +18,5 @@ public class LuckyWorldTarget : TargetRules
|
|||||||
{
|
{
|
||||||
this.bUseLoggingInShipping = true;
|
this.bUseLoggingInShipping = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// macOS specific settings
|
|
||||||
if (Target.Platform == UnrealTargetPlatform.Mac)
|
|
||||||
{
|
|
||||||
// Force use the bundle ID from DefaultGame.ini
|
|
||||||
GlobalDefinitions.Add("APP_BUNDLE_IDENTIFIER=com.luckyrobots.luckyworld");
|
|
||||||
GlobalDefinitions.Add("APP_BUNDLE_NAME=LuckyWorld");
|
|
||||||
GlobalDefinitions.Add("APP_BUNDLE_DISPLAY_NAME=LuckyWorld");
|
|
||||||
|
|
||||||
// Don't use local automatic code signing for builds
|
|
||||||
// bDisableAutomaticCodeSigning property is not available in UE 5.5
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,12 +20,5 @@ public class LuckyWorld : ModuleRules
|
|||||||
|
|
||||||
// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
|
// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
|
||||||
|
|
||||||
// Set the bundle identifier for macOS builds
|
|
||||||
if (Target.Platform == UnrealTargetPlatform.Mac)
|
|
||||||
{
|
|
||||||
PublicDefinitions.Add("APP_BUNDLE_IDENTIFIER=com.luckyrobots.luckyworld");
|
|
||||||
PublicDefinitions.Add("APP_BUNDLE_NAME=LuckyWorld");
|
|
||||||
PublicDefinitions.Add("APP_BUNDLE_DISPLAY_NAME=LuckyWorld");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,13 +10,6 @@ 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;
|
|
||||||
BuildEnvironment = TargetBuildEnvironment.Shared;
|
|
||||||
|
|
||||||
// Ensure proper build configuration
|
|
||||||
bShouldCompileAsDLL = false;
|
|
||||||
|
|
||||||
ExtraModuleNames.AddRange( new string[] { "LuckyWorld" } );
|
ExtraModuleNames.AddRange( new string[] { "LuckyWorld" } );
|
||||||
|
|
||||||
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
|
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
|
||||||
|
@ -30,7 +30,7 @@ echo "Archive directory: $ARCHIVE_DIR"
|
|||||||
|
|
||||||
# More selective cleanup - don't remove DerivedDataCache
|
# More selective cleanup - don't remove DerivedDataCache
|
||||||
echo "🧹 Cleaning build artifacts..."
|
echo "🧹 Cleaning build artifacts..."
|
||||||
rm -rf Intermediate/Build/Mac Saved/Cooked
|
rm -rf DerivedDataCache Intermediate Binaries Saved
|
||||||
mkdir -p "$ARCHIVE_DIR"
|
mkdir -p "$ARCHIVE_DIR"
|
||||||
|
|
||||||
# Generate project files
|
# Generate project files
|
||||||
@ -39,25 +39,43 @@ echo "📝 Generating project files..."
|
|||||||
|
|
||||||
# Run the build command with simplified parameters and more diagnostics
|
# Run the build command with simplified parameters and more diagnostics
|
||||||
echo "🔨 Starting build process..."
|
echo "🔨 Starting build process..."
|
||||||
"$UE_UAT" -ScriptsForProject="$PROJECT_FILE" BuildCookRun \
|
"$UE_UAT" -ScriptsForProject="$PROJECT_FILE" Turnkey \
|
||||||
-project="$PROJECT_FILE" \
|
-command=VerifySdk \
|
||||||
-platform=Mac \
|
-platform=Mac \
|
||||||
-clientconfig=Shipping \
|
-UpdateIfNeeded \
|
||||||
|
-EditorIO \
|
||||||
|
-EditorIOPort=59484 \
|
||||||
|
-project="$PROJECT_FILE" \
|
||||||
|
BuildCookRun \
|
||||||
|
-nop4 \
|
||||||
|
-utf8output \
|
||||||
|
-cook \
|
||||||
|
-project="$PROJECT_FILE" \
|
||||||
-target=LuckyWorld \
|
-target=LuckyWorld \
|
||||||
-build \
|
-unrealexe="$UE_EDITOR" \
|
||||||
-cook -iterate -CookOnTheFly -CookMapsOnly \
|
-platform=Mac \
|
||||||
|
-installed \
|
||||||
-stage \
|
-stage \
|
||||||
-skipStage=SignExecutables \
|
-archive \
|
||||||
|
-package \
|
||||||
|
-build \
|
||||||
|
-iterativecooking \
|
||||||
-pak \
|
-pak \
|
||||||
|
-iostore \
|
||||||
-compressed \
|
-compressed \
|
||||||
-prereqs \
|
-prereqs \
|
||||||
-iostore \
|
|
||||||
-package \
|
|
||||||
-archive \
|
|
||||||
-archivedirectory="$ARCHIVE_DIR" \
|
-archivedirectory="$ARCHIVE_DIR" \
|
||||||
-verbose \
|
-CrashReporter \
|
||||||
-ddc=DerivedDataBackendGraph \
|
-clientconfig=Shipping \
|
||||||
-CrashReporter
|
# -nocompile \
|
||||||
|
# -nocompileuat \
|
||||||
|
# -nocompileeditor \
|
||||||
|
# -skipbuildeditor \
|
||||||
|
|
||||||
|
# enable these if you want to test build without pak and iostore (you're just testing the build)
|
||||||
|
# -skipiostore \
|
||||||
|
# -skippak \ (disable -pak and -iostore)
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# Check for errors in the build process
|
# Check for errors in the build process
|
||||||
BUILD_STATUS=$?
|
BUILD_STATUS=$?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user