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 [string]$Platform
# Configuration name i.e. Development, Shipping # Configuration name i.e. Development, Shipping
[string]$Configuration [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 # Additional arguments to send to the build command line
[string]$ExtraBuildArguments [string]$ExtraBuildArguments
# Whether to create a zip of this package (default false) # Whether to create a zip of this package (default false)

View File

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

View File

@ -232,6 +232,9 @@ try {
if ($maps.Count) { if ($maps.Count) {
$argList.Add("-Map=$($maps -join "+")") > $null $argList.Add("-Map=$($maps -join "+")") > $null
} }
if ($var.Cultures) {
$argList.Add("-cookcultures=$($var.Cultures -join "+")") > $null
}
$argList.Add($var.ExtraBuildArguments) > $null $argList.Add($var.ExtraBuildArguments) > $null
Write-Output "Building variant: $($var.Name)" Write-Output "Building variant: $($var.Name)"