Change RubyGems installation to use toolset (#3474)

This commit is contained in:
Mikhail Timofeev
2021-05-30 00:39:27 +03:00
committed by GitHub
parent cfbaf5ff4d
commit 5898c5ebd4
7 changed files with 89 additions and 46 deletions

View File

@@ -234,13 +234,18 @@ function Build-XcodeSupportToolsSection {
"xcversion $xcversion"
)
$nomadOutput = Run-Command "gem list nomad-cli"
$nomadCLI = [regex]::matches($nomadOutput, "(\d+.){2}\d+").Value
$nomadShenzhenOutput = Run-Command "ipa -version"
$nomadShenzhen = [regex]::matches($nomadShenzhenOutput, "(\d+.){2}\d+").Value
$toolList += @(
"Nomad CLI $nomadCLI",
"Nomad shenzhen CLI $nomadShenzhen"
)
if ($os.IsLessThanBigSur) {
$nomadCLI = Run-Command "gem -v nomad-cli"
$nomadIPA = Run-Command "ipa -version"
$xctool = Run-Command "xctool --version"
$toolList += @(
"Nomad CLI $nomadCLI",
"Nomad CLI IPA $nomadIPA",
"xctool $xctool"
)
}