[macOS] Remove macOS 10.14 related code in the VE repo (#4816)

* [MacOS] Remove code for macOS-10.14

* remove is_Less_BigSur in all script

* remove variable the IsLessThanBigSur
This commit is contained in:
V-Zabayrachny
2021-12-30 10:36:59 +03:00
committed by GitHub
parent 29dbc46881
commit 3c2f1c6350
24 changed files with 33 additions and 1127 deletions

View File

@@ -50,7 +50,7 @@ $languageAndRuntimeList = @(
(Get-FortranVersion)
)
if ($os.IsLessThanBigSur) {
if ($os.IsCatalina) {
$languageAndRuntimeList += @(
(Get-RVersion)
)
@@ -74,7 +74,8 @@ $packageManagementList = @(
(Get-NuGetVersion),
(Get-RubyGemsVersion),
(Get-ComposerVersion),
(Get-CarthageVersion)
(Get-CarthageVersion),
(Get-VcpkgVersion)
)
if ($os.IsLessThanMonterey) {
@@ -83,12 +84,6 @@ if ($os.IsLessThanMonterey) {
)
}
if ($os.IsHigherThanMojave) {
$packageManagementList += @(
(Get-VcpkgVersion)
)
}
$markdown += New-MDList -Style Unordered -Lines ($packageManagementList | Sort-Object)
if ($os.IsLessThanMonterey) {
$markdown += New-MDHeader "Environment variables" -Level 4
@@ -141,13 +136,13 @@ if ($os.IsLessThanMonterey) {
)
}
if ($os.IsHigherThanMojave -and $os.IsLessThanMonterey) {
if ($os.IsLessThanMonterey) {
$utilitiesList += @(
(Get-NewmanVersion)
)
}
if ($os.IsLessThanBigSur) {
if ($os.IsCatalina) {
$utilitiesList += @(
(Get-VirtualBoxVersion),
(Get-VagrantVersion),
@@ -245,9 +240,8 @@ $markdown += Get-PowerShellModules | New-MDTable
$markdown += New-MDNewLine
# Web Servers
if ($os.IsHigherThanMojave) {
$markdown += Build-WebServersSection
}
$markdown += Build-WebServersSection
# Xamarin section
$markdown += New-MDHeader "Xamarin" -Level 3
@@ -282,7 +276,7 @@ $markdown += New-MDNewLine
# Android section
$markdown += New-MDHeader "Android" -Level 3
$androidTable = Build-AndroidTable
if ($os.IsLessThanBigSur) {
if ($os.IsCatalina) {
$androidTable += Get-IntelHaxmVersion
}
$markdown += $androidTable | New-MDTable