🔨 Add support for sonoma & ventura to bottle script

This commit is contained in:
Ben Chatelain 2023-11-25 14:09:33 -07:00
parent f1276dabc6
commit 742e054cc9

View file

@ -28,24 +28,31 @@ CURRENT_OS_VERSION_MINOR=${CURRENT_OS_VERSION[1]}
echo "CURRENT_OS_VERSION_MAJOR: $CURRENT_OS_VERSION_MAJOR" echo "CURRENT_OS_VERSION_MAJOR: $CURRENT_OS_VERSION_MAJOR"
echo "CURRENT_OS_VERSION_MINOR: $CURRENT_OS_VERSION_MINOR" echo "CURRENT_OS_VERSION_MINOR: $CURRENT_OS_VERSION_MINOR"
if [[ ${CURRENT_OS_VERSION_MAJOR} == "12" ]]; then case "${CURRENT_OS_VERSION_MAJOR}" in
if [[ "x86_64" == "$(uname -m)" ]]; then 14)
CURRENT_PLATFORM=monterey CURRENT_PLATFORM=monterey
else ;;
CURRENT_PLATFORM=arm64_monterey 13)
fi CURRENT_PLATFORM=ventura
elif [[ ${CURRENT_OS_VERSION_MAJOR} == "11" ]]; then ;;
# Big Sur 12)
if [[ "x86_64" == "$(uname -m)" ]]; then CURRENT_PLATFORM=monterey
CURRENT_PLATFORM=big_sur ;;
else 11)
CURRENT_PLATFORM=arm64_big_sur CURRENT_PLATFORM=big_sur
fi ;;
elif [[ ${CURRENT_OS_VERSION_MAJOR} == "10" && ${CURRENT_OS_VERSION_MINOR} == "15" ]]; then 11)
CURRENT_PLATFORM=catalina CURRENT_PLATFORM=catalina
else ;;
*)
echo "Unsupported macOS version. This script requires Catalina or better." echo "Unsupported macOS version. This script requires Catalina or better."
exit 1 exit 1
;;
esac
# Prefix platform with architecture
if [[ "arm64" == "$(uname -m)" ]]; then
CURRENT_PLATFORM="arm64_${CURRENT_PLATFORM}"
fi fi
echo "CURRENT_PLATFORM: ${CURRENT_PLATFORM}" echo "CURRENT_PLATFORM: ${CURRENT_PLATFORM}"