Add macOS 12 image templates (#4062)

This commit is contained in:
Dmitry Shibanov
2021-09-24 13:56:16 +03:00
committed by GitHub
parent ee4eda5e99
commit bf1cae6dcf
20 changed files with 530 additions and 46 deletions

View File

@@ -42,12 +42,17 @@ $languageAndRuntimeList = @(
(Get-RubyVersion),
(Get-DotnetVersionList),
(Get-GoVersion),
(Get-PHPVersion),
(Get-JuliaVersion),
(Get-KotlinVersion)
)
if ( -not $os.IsHighSierra) {
if ($os.IsLessThanMonterey) {
$languageAndRuntimeList += @(
(Get-PHPVersion)
)
}
if ( -not $os.IsHighSierra -and $os.IsLessThanMonterey) {
$languageAndRuntimeList += @(
(Get-GccVersion)
(Get-FortranVersion)
@@ -72,28 +77,34 @@ $packageManagementList = @(
(Get-PipVersion -Version 3),
(Get-PipxVersion),
(Get-BundlerVersion),
(Get-CarthageVersion),
(Get-CocoaPodsVersion),
(Get-HomebrewVersion),
(Get-NPMVersion),
(Get-YarnVersion),
(Get-NuGetVersion),
(Get-CondaVersion),
(Get-RubyGemsVersion),
(Get-ComposerVersion)
)
if ($os.IsHigherThanMojave) {
if ($os.IsLessThanMonterey) {
$packageManagementList += @(
(Get-CarthageVersion),
(Get-CondaVersion)
)
}
if ($os.IsHigherThanMojave -and $os.IsLessThanMonterey) {
$packageManagementList += @(
(Get-VcpkgVersion)
)
}
$markdown += New-MDList -Style Unordered -Lines ($packageManagementList | Sort-Object)
$markdown += New-MDHeader "Environment variables" -Level 4
$markdown += Build-PackageManagementEnvironmentTable | New-MDTable
$markdown += New-MDNewLine
if ($os.IsLessThanMonterey) {
$markdown += New-MDHeader "Environment variables" -Level 4
$markdown += Build-PackageManagementEnvironmentTable | New-MDTable
$markdown += New-MDNewLine
}
# Project Management
$markdown += New-MDHeader "Project Management" -Level 3
$markdown += New-MDList -Style Unordered -Lines (@(
@@ -117,7 +128,6 @@ $utilitiesList = @(
(Get-PackerVersion),
(Get-OpenSSLVersion),
(Get-JqVersion),
(Get-GPGVersion),
(Get-PostgresClientVersion),
(Get-PostgresServerVersion),
(Get-Aria2Version),
@@ -125,7 +135,6 @@ $utilitiesList = @(
(Get-ZstdVersion),
(Get-BazelVersion),
(Get-BazeliskVersion),
(Get-HelmVersion),
(Get-MongoVersion),
(Get-MongodVersion),
(Get-7zipVersion),
@@ -133,7 +142,14 @@ $utilitiesList = @(
(Get-GnuTarVersion)
)
if ($os.IsHigherThanMojave) {
if ($os.IsLessThanMonterey) {
$utilitiesList += @(
(Get-GPGVersion),
(Get-HelmVersion)
)
}
if ($os.IsHigherThanMojave -and $os.IsLessThanMonterey) {
$utilitiesList += @(
(Get-NewmanVersion)
)
@@ -147,7 +163,7 @@ if ($os.IsLessThanBigSur) {
)
}
if (-not $os.IsHighSierra) {
if (-not $os.IsHighSierra -and $os.IsLessThanMonterey) {
$utilitiesList += @(
(Get-SwitchAudioOsxVersion),
(Get-SoxVersion)
@@ -166,8 +182,16 @@ $toolsList = @(
(Get-AzureCLIVersion),
(Get-AWSCLIVersion),
(Get-AWSSAMCLIVersion),
(Get-AWSSessionManagerCLIVersion),
(Get-AliyunCLIVersion),
(Get-AWSSessionManagerCLIVersion)
)
if ($os.IsLessThanMonterey) {
$toolsList += @(
(Get-AliyunCLIVersion)
)
}
$toolsList += @(
(Get-XcodeCommandLineToolsVersion),
(Get-SwigVersion),
(Get-BicepVersion)
@@ -178,9 +202,13 @@ if( -not $os.IsHighSierra) {
(Get-GHCupVersion),
(Get-GHCVersion),
(Get-CabalVersion),
(Get-StackVersion),
(Get-SwiftFormatVersion)
(Get-StackVersion)
)
if($os.IsLessThanMonterey) {
$toolsList += @(
(Get-SwiftFormatVersion)
)
}
}
$markdown += New-MDList -Style Unordered -Lines ($toolsList | Sort-Object)