[Mac OS] Configure template for Mac OS 14 ARM64 image (#8769)

* Configure template for Mac OS 14 ARM64 image

* Change conditions for ruby
This commit is contained in:
Vasilii Polikarpov
2023-11-10 18:53:24 +01:00
committed by GitHub
parent f685533110
commit df292beac6
31 changed files with 434 additions and 202 deletions

View File

@@ -2,7 +2,7 @@ function Get-JavaVersions {
$defaultJavaPath = (Get-Item env:JAVA_HOME).value
$os = Get-OSVersion
if ($os.IsVenturaArm64) {
if ($os.IsVenturaArm64 -or $os.IsSonomaArm64) {
$javaVersions = Get-Item env:JAVA_HOME_*_arm64
} else {
$javaVersions = Get-Item env:JAVA_HOME_*_X64