[macOS] Introduce macOS-15 code (#10535)

Co-authored-by: Alexey-Ayupov <alexey-ayupov@github.com>
This commit is contained in:
Erik Bershel
2024-09-03 18:45:06 +02:00
committed by GitHub
parent ff516bd145
commit ab15087979
30 changed files with 897 additions and 89 deletions

View File

@@ -36,6 +36,9 @@ function Get-OSVersion {
IsSonoma = $($osVersion.Version.Major -eq "14")
IsSonomaArm64 = $($osVersion.Version.Major -eq "14" -and $processorArchitecture -eq "arm64")
IsSonomaX64 = $($osVersion.Version.Major -eq "14" -and $processorArchitecture -ne "arm64")
IsSequoia = $($osVersion.Version.Major -eq "15")
IsSequoiaArm64 = $($osVersion.Version.Major -eq "15" -and $processorArchitecture -eq "arm64")
IsSequoiaX64 = $($osVersion.Version.Major -eq "15" -and $processorArchitecture -ne "arm64")
}
}

View File

@@ -45,6 +45,18 @@ is_Arm64() {
[ "$(arch)" = "arm64" ]
}
is_Sequoia() {
[ "$OSTYPE" = "darwin24" ]
}
is_SequoiaArm64() {
is_Sequoia && is_Arm64
}
is_SequoiaX64() {
is_Sequoia && ! is_Arm64
}
is_Sonoma() {
[ "$OSTYPE" = "darwin23" ]
}