fix(actions): add macOS specific settings for bundle identifier and display name

This commit is contained in:
Ozgur 2025-04-15 13:27:23 +02:00
parent 2b40fb0394
commit 6b128e8cb4
No known key found for this signature in database
GPG Key ID: 66CDF27505A35546
3 changed files with 40 additions and 0 deletions

View File

@ -338,3 +338,26 @@ NearClipPlane=0.100000
bFinalUsesRDO=True
FinalRDOLambda=100
[/Script/MacTargetPlatform.MacTargetSettings]
TargetedRHIs=SF_METAL_SM5
MetalLanguageVersion=5
MaxShaderLanguageVersion=4
MinimumOSVersion=11
BundleName=LuckyWorld
BundleDisplayName=LuckyWorld
bEnableMathOptimizations=True
UseFastIntrinsics=True
EnableMipGenOption=Default
FrameRateLock=PUFRL_None
AudioSampleRate=48000
AudioMaxChannels=32
bUseCustomIcon=False
bUseMiniUPnP=False
MetalDynamicLibraries=()
MetalRuntimeLibrary=1
OutputRealFPS=False
bBuildEmbeddedFrameworksForGame=False
EnableCodeCoverage=False
EnableCodeCoveragePath=(Path="")
ForwardShading=False
UseFastCopyToResolve=True

View File

@ -18,5 +18,14 @@ public class LuckyWorldTarget : TargetRules
{
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");
}
}
}

View File

@ -19,5 +19,13 @@ public class LuckyWorld : ModuleRules
// PrivateDependencyModuleNames.Add("OnlineSubsystem");
// 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");
}
}
}