Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2020-08-01 18:22:37 +0300
committerRobert Adam <dev@robert-adam.de>2020-08-02 17:04:19 +0300
commita0ccce40f0ea66bacb2c364279cafbdd2c2183ae (patch)
tree65dd1474ac8a8e130fe632b2548f6d5f26200cfa /scripts
parent3a07016b8fb4f902b778c1d74cbb13cab25fa93a (diff)
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. Co-authored-by: Davide Beatrici <github@davidebeatrici.dev>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Create-Win32InstallerMUI.ps148
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"