From db15f6f08a5deb9fb117cb415645a8a1d73aff54 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 8 May 2024 18:48:55 +0200 Subject: [PATCH] Add `For Distribution` to be enabled by default in `Release` builds #2571 --- Source/Editor/Cooker/Platform/Android/AndroidPlatformTools.cpp | 2 +- Source/Engine/Core/Config/BuildSettings.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/Cooker/Platform/Android/AndroidPlatformTools.cpp b/Source/Editor/Cooker/Platform/Android/AndroidPlatformTools.cpp index 5ad88db24..dd40abeb0 100644 --- a/Source/Editor/Cooker/Platform/Android/AndroidPlatformTools.cpp +++ b/Source/Editor/Cooker/Platform/Android/AndroidPlatformTools.cpp @@ -365,7 +365,7 @@ bool AndroidPlatformTools::OnPostProcess(CookingData& data) Platform::CreateProcess(procSettings); } #endif - const bool distributionPackage = buildSettings->ForDistribution; + const bool distributionPackage = buildSettings->ForDistribution || data.Configuration == BuildConfiguration::Release; { CreateProcessSettings procSettings; procSettings.FileName = String::Format(TEXT("\"{0}\" {1}"), data.OriginalOutputPath / gradlew, distributionPackage ? TEXT("assemble") : TEXT("assembleDebug")); diff --git a/Source/Engine/Core/Config/BuildSettings.h b/Source/Engine/Core/Config/BuildSettings.h index 86bc9571f..ff90d1b9d 100644 --- a/Source/Engine/Core/Config/BuildSettings.h +++ b/Source/Engine/Core/Config/BuildSettings.h @@ -42,7 +42,7 @@ public: int32 ContentKey = 0; /// - /// If checked, the builds produced by the Game Cooker will be treated as for final game distribution (eg. for game store upload). Builds done this way cannot be tested on console devkits (eg. Xbox One, Xbox Scarlett). + /// If checked, the builds produced by the Game Cooker will be treated as for final game distribution (eg. for game store upload). Builds done this way cannot be tested on console devkits (eg. Xbox One, Xbox Scarlett). Enabled by default for `Release` builds. /// API_FIELD(Attributes="EditorOrder(40), EditorDisplay(\"General\")") bool ForDistribution = false;