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

@@ -39,6 +39,14 @@ download_with_retries() {
return 1
}
is_Monterey() {
if [ "$OSTYPE" = "darwin21" ]; then
true
else
false
fi
}
is_BigSur() {
if [ "$OSTYPE" = "darwin20" ]; then
true
@@ -87,6 +95,14 @@ is_Less_BigSur() {
fi
}
is_Less_Monterey() {
if is_HighSierra || is_Mojave || is_Catalina || is_BigSur; then
true
else
false
fi
}
get_toolset_path() {
echo "$HOME/image-generation/toolset.json"
}
@@ -124,6 +140,8 @@ get_brew_os_keyword() {
echo "catalina"
elif is_BigSur; then
echo "big_sur"
elif is_Monterey; then
echo "monterey"
else
echo "null"
fi