Skip to content

Commit

Permalink
Fix #78: Add version-based support for native arm64 Database Tools on…
Browse files Browse the repository at this point in the history
… macOS when available
  • Loading branch information
stennie committed Mar 17, 2024
1 parent 63fae4d commit 6f27d74
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions bin/m
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,15 @@ install_tools_bin() {
if vergte $version "100.1.0"; then
ext="zip"
fi
if [ "$arch" = "arm64" ]; then
echo ""
echo "NOTE: Apple Silicon is not natively supported for MongoDB Database Tools"
echo " ==> Changing detected architecture from arm64 to x86_64 so Rosetta 2 can be used"
echo " More info: https://support.apple.com/en-au/HT211861"
echo ""
arch="x86_64"
if [[ "$arch" = "arm64" ]]; then
if verlte "$version" "100.7.0"; then
echo ""
echo "NOTE: Apple Silicon is not natively supported for this version of MongoDB Database Tools"
echo " ==> Changing detected architecture from arm64 to x86_64 so Rosetta 2 can be used"
echo " More info: https://support.apple.com/en-au/HT211861"
echo ""
arch="x86_64"
fi
fi
fi

Expand Down

0 comments on commit 6f27d74

Please sign in to comment.