diff options
author | Robert Adam <dev@robert-adam.de> | 2020-08-02 18:55:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-02 18:55:10 +0300 |
commit | b46b46323e947e2e9fffe5f632565d54742ef502 (patch) | |
tree | 982572487d838d987e4d7cabbbe5d12b4fd3c0cb | |
parent | d2d5dc2cff854c864e4ec507ceb77a31963825da (diff) | |
parent | a0ccce40f0ea66bacb2c364279cafbdd2c2183ae (diff) |
Merge pull request #4389: CI(installer): Only build a few cultures by default
This should save some time during building the installer which hopefully
helps preventing the Windows CI from exceeding the maximum time.
-rw-r--r-- | scripts/Create-Win32InstallerMUI.ps1 | 48 |
1 files changed, 28 insertions, 20 deletions
diff --git a/scripts/Create-Win32InstallerMUI.ps1 b/scripts/Create-Win32InstallerMUI.ps1 index 8e6120540..06dddaec9 100644 --- a/scripts/Create-Win32InstallerMUI.ps1 +++ b/scripts/Create-Win32InstallerMUI.ps1 @@ -5,7 +5,8 @@ param( [Parameter(Mandatory=$true)]$packageName, - [Parameter(Mandatory=$true)]$version + [Parameter(Mandatory=$true)]$version, + [switch]$allCultures ) Function Build-Installer { @@ -50,25 +51,32 @@ if(-Not (Test-Path -Path "EmbedTransform.exe")) { } $mainCulture = "en-US" -$extraCultures = - "cs-CZ", - "da-DK", - "de-DE", - "el-GR", - "es-ES", - "fi-FI", - "fr-FR", - "it-IT", - "ja-JP", - "nb-NO", - "nl-NL", - "pl-PL", - "pt-PT", - "ru-RU", - "sv-SE", - "tr-TR", - "zh-CN", - "zh-TW" +if ($allCultures.isPresent) { + $extraCultures = + "cs-CZ", + "da-DK", + "de-DE", + "el-GR", + "es-ES", + "fi-FI", + "fr-FR", + "it-IT", + "ja-JP", + "nb-NO", + "nl-NL", + "pl-PL", + "pt-PT", + "ru-RU", + "sv-SE", + "tr-TR", + "zh-CN", + "zh-TW" +} else { + # Only use a few languages in order to save time + $extraCultures = + "de-DE", + "es-ES" +} $wixBinaryDir = $env:WIX + "bin" $installerName = "$packageName-$version" |