mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
[macOS] Update SoftwareReport scripts (#9092)
This commit is contained in:
@@ -38,7 +38,7 @@ function Invoke-DownloadXcodeArchive {
|
||||
if ($xcodeSha256 -ne $Sha256Sum) {
|
||||
throw "Xcode $Version checksum mismatch. Expected: $Sha256Sum, Actual: $xcodeSha256"
|
||||
}
|
||||
|
||||
|
||||
return $tempXipDirectory
|
||||
}
|
||||
|
||||
@@ -65,6 +65,7 @@ function Get-AvailableXcodeVersions {
|
||||
$availableVersions = $rawVersionsList | ForEach-Object {
|
||||
$partStable,$partMajor = $_.Split(" ", 2)
|
||||
$semver = $stableSemver = [SemVer]::Parse($partStable)
|
||||
|
||||
if ($partMajor) {
|
||||
# Convert 'beta 3' -> 'beta.3', 'Release Candidate' -> 'releasecandidate', 'GM Seed 2' -> 'gmseed.2'
|
||||
$normalizedLabel = $partMajor.toLower() -replace " (\d)", '.$1' -replace " ([a-z])", '$1'
|
||||
|
||||
Reference in New Issue
Block a user