mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
Adjust MacOs13 arm64 base image generation script (#8303)
This commit is contained in:
committed by
GitHub
parent
fa9f2bc4a3
commit
329ed9bb08
@@ -63,11 +63,11 @@ function Get-AvailableIPSWVersions {
|
|||||||
)
|
)
|
||||||
|
|
||||||
if ($IsBeta) {
|
if ($IsBeta) {
|
||||||
$command = { mist list installer "$MacOSCodeNameOrVersion" --include-betas --latest --export "/Applications/export.json"}
|
$command = { mist list firmware "$MacOSCodeNameOrVersion" --include-betas --latest --export "/Applications/export.json"}
|
||||||
} elseif ($IsLatest) {
|
} elseif ($IsLatest) {
|
||||||
$command = { mist list installer "$MacOSCodeNameOrVersion" --latest --export "/Applications/export.json" }
|
$command = { mist list firmware "$MacOSCodeNameOrVersion" --latest --export "/Applications/export.json" }
|
||||||
} else {
|
} else {
|
||||||
$command = { mist list installer "$MacOSCodeNameOrVersion" --export "/Applications/export.json" }
|
$command = { mist list firmware "$MacOSCodeNameOrVersion" --export "/Applications/export.json" }
|
||||||
}
|
}
|
||||||
|
|
||||||
$condition = { $LASTEXITCODE -eq 0 }
|
$condition = { $LASTEXITCODE -eq 0 }
|
||||||
@@ -76,7 +76,7 @@ function Get-AvailableIPSWVersions {
|
|||||||
$turgetVersion = ($softwareList | ConvertFrom-Json).version
|
$turgetVersion = ($softwareList | ConvertFrom-Json).version
|
||||||
if ($null -eq $turgetVersion) {
|
if ($null -eq $turgetVersion) {
|
||||||
Write-Host "Requested macOS '$MacOSCodeNameOrVersion' version not found in the list of available installers."
|
Write-Host "Requested macOS '$MacOSCodeNameOrVersion' version not found in the list of available installers."
|
||||||
$command = { mist list installer "$($MacOSCodeNameOrVersion.split('.')[0])" }
|
$command = { mist list firmware "$($MacOSCodeNameOrVersion.split('.')[0])" }
|
||||||
Invoke-WithRetry -Command $command -BreakCondition $condition
|
Invoke-WithRetry -Command $command -BreakCondition $condition
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
@@ -133,6 +133,7 @@ function Get-MacOSIPSWInstaller {
|
|||||||
}
|
}
|
||||||
return $result
|
return $result
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-MacOSInstaller {
|
function Get-MacOSInstaller {
|
||||||
param (
|
param (
|
||||||
[Parameter(Mandatory)]
|
[Parameter(Mandatory)]
|
||||||
|
|||||||
Reference in New Issue
Block a user