mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 21:10:24 +00:00
🔨 Add support for sonoma & ventura to bottle script
This commit is contained in:
parent
f1276dabc6
commit
742e054cc9
1 changed files with 22 additions and 15 deletions
|
@ -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
|
||||||
|
;;
|
||||||
|
11)
|
||||||
CURRENT_PLATFORM=big_sur
|
CURRENT_PLATFORM=big_sur
|
||||||
else
|
;;
|
||||||
CURRENT_PLATFORM=arm64_big_sur
|
11)
|
||||||
fi
|
|
||||||
elif [[ ${CURRENT_OS_VERSION_MAJOR} == "10" && ${CURRENT_OS_VERSION_MINOR} == "15" ]]; then
|
|
||||||
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}"
|
||||||
|
|
Loading…
Reference in a new issue