static void SetupAndroidDLCProfile(ILauncherProfileRef& DLCProfile, const FProfileParameters& Params, const FString& ProjectPath) { DLCProfile->SetProjectSpecified(true); DLCProfile->SetProjectPath(ProjectPath); DLCProfile->SetBuildUAT(true); // App build configuration DLCProfile->SetBuildGame(false); DLCProfile->SetBuildConfiguration(Params.BuildConfiguration); //// Cooking DLCProfile->SetCookMode(ELauncherProfileCookModes::ByTheBook); DLCProfile->SetCookConfiguration(Params.BuildConfiguration); for (const FString& MapName : Params.DLCMaps) { DLCProfile->AddCookedMap(MapName); } for (const FString& CookFlavor : Params.DLCCookFlavors) { DLCProfile->AddCookedPlatform(CookFlavor); } // Release settings DLCProfile->SetCreateReleaseVersion(false); DLCProfile->SetBasedOnReleaseVersionName(AndroidProfileConstants::AppReleaseName); DLCProfile->SetCreateDLC(true); DLCProfile->SetDLCName(AndroidProfileConstants::DLCName); DLCProfile->SetDLCIncludeEngineContent(false); DLCProfile->SetIncrementalCooking(false); DLCProfile->SetCompressed(false); DLCProfile->SetDeployWithUnrealPak(true); // HTTP chunk data DLCProfile->SetGenerateHttpChunkData(true); DLCProfile->SetHttpChunkDataReleaseName(AndroidProfileConstants::DLCName); { FString CloudDir = Params.ArchiveDirectory / TEXT("HTTPchunks/") / AndroidProfileConstants::DLCName; IPlatformFile& PlatformFile = FPlatformFileManager::Get().GetPlatformFile(); if (!PlatformFile.DirectoryExists(*CloudDir)) { PlatformFile.CreateDirectoryTree(*CloudDir); } DLCProfile->SetHttpChunkDataDirectory(CloudDir); } // Packaging DLCProfile->SetPackagingMode(ELauncherProfilePackagingModes::DoNotPackage); // Deploy DLCProfile->SetDeploymentMode(ELauncherProfileDeploymentModes::DoNotDeploy); // Launch DLCProfile->SetLaunchMode(ELauncherProfileLaunchModes::DoNotLaunch); }
static void SetupIOSAppProfile(ILauncherProfileRef& AppProfile, const FProfileParameters& Params, const FString& ProjectPath) { AppProfile->SetProjectSpecified(true); AppProfile->SetProjectPath(ProjectPath); AppProfile->SetBuildUAT(true); // App build configuration AppProfile->SetBuildGame(true); AppProfile->SetBuildConfiguration(Params.BuildConfiguration); //// Cooking AppProfile->SetCookMode(ELauncherProfileCookModes::ByTheBook); AppProfile->SetCookConfiguration(Params.BuildConfiguration); for (const FString MapName : Params.AppMaps) { AppProfile->AddCookedMap(MapName); } AppProfile->AddCookedPlatform(IOSProfileConstants::AppPlatformName); // Release settings AppProfile->SetCreateReleaseVersion(true); AppProfile->SetCreateReleaseVersionName(IOSProfileConstants::AppReleaseName); AppProfile->SetIncrementalCooking(false); AppProfile->SetCompressed(false); AppProfile->SetDeployWithUnrealPak(true); // Packaging AppProfile->SetPackagingMode(ELauncherProfilePackagingModes::Locally); // Archive AppProfile->SetArchive(true); { FString AppDir = Params.ArchiveDirectory / TEXT("App/") / IOSProfileConstants::AppReleaseName; IPlatformFile& PlatformFile = FPlatformFileManager::Get().GetPlatformFile(); if (!PlatformFile.DirectoryExists(*AppDir)) { PlatformFile.CreateDirectoryTree(*AppDir); } AppProfile->SetArchiveDirectory(AppDir); } // Deploy AppProfile->SetDeploymentMode(ELauncherProfileDeploymentModes::DoNotDeploy); // Launch AppProfile->SetLaunchMode(ELauncherProfileLaunchModes::DoNotLaunch); }