From 43ee83453444c511faea0721636a4f662d2a36da Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Wed, 7 Oct 2020 11:40:59 +0100 Subject: [PATCH] Support cooking specific cultures in variants --- inc/packageconfig.ps1 | 2 ++ packageconfig_template.json | 7 ++++++- ue4-package.ps1 | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/inc/packageconfig.ps1 b/inc/packageconfig.ps1 index 2a51005..24cd5f9 100644 --- a/inc/packageconfig.ps1 +++ b/inc/packageconfig.ps1 @@ -6,6 +6,8 @@ class PackageVariant { [string]$Platform # Configuration name i.e. Development, Shipping [string]$Configuration + # List of cultures to cook into this variant. If omitted, use the project packaging settings + [array]$Cultures # Additional arguments to send to the build command line [string]$ExtraBuildArguments # Whether to create a zip of this package (default false) diff --git a/packageconfig_template.json b/packageconfig_template.json index 47e69db..1679e5d 100644 --- a/packageconfig_template.json +++ b/packageconfig_template.json @@ -21,7 +21,12 @@ "SteamAppId": "YourSteamAppId", "SteamDepotId": "YourWindowsDepotId", "Zip": false, - "ExtraBuildArguments": "-EnableSteamworks" + "ExtraBuildArguments": "-EnableSteamworks", + "Cultures": [ + "en", + "fr", + "de" + ] }, { "Name": "PublicWin64Build", diff --git a/ue4-package.ps1 b/ue4-package.ps1 index ab15be7..296f72b 100644 --- a/ue4-package.ps1 +++ b/ue4-package.ps1 @@ -232,6 +232,9 @@ try { if ($maps.Count) { $argList.Add("-Map=$($maps -join "+")") > $null } + if ($var.Cultures) { + $argList.Add("-cookcultures=$($var.Cultures -join "+")") > $null + } $argList.Add($var.ExtraBuildArguments) > $null Write-Output "Building variant: $($var.Name)"