Support cooking specific cultures in variants

This commit is contained in:
Steve Streeting 2020-10-07 11:40:59 +01:00
parent 95b5c16e64
commit 43ee834534
3 changed files with 11 additions and 1 deletions

View File

@ -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)

View File

@ -21,7 +21,12 @@
"SteamAppId": "YourSteamAppId",
"SteamDepotId": "YourWindowsDepotId",
"Zip": false,
"ExtraBuildArguments": "-EnableSteamworks"
"ExtraBuildArguments": "-EnableSteamworks",
"Cultures": [
"en",
"fr",
"de"
]
},
{
"Name": "PublicWin64Build",

View File

@ -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)"