mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 13:15:23 +00:00
Support cooking specific cultures in variants
This commit is contained in:
parent
95b5c16e64
commit
43ee834534
@ -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)
|
||||||
|
@ -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",
|
||||||
|
@ -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)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user