🐛 Default PREFIX to /opt/homebrew on Apple Silicon (arm64)

This commit is contained in:
Chris Araman 2021-01-28 13:10:48 -08:00
parent fd9e1767b2
commit e8cdd18748
3 changed files with 9 additions and 4 deletions

View file

@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- ⚒️ Xcode 11.4 and macOS 10.15.2 required to build
- ✨ Support for Apple Silicon (arm64) #310
- ⚒️ Xcode 12.2 and macOS 10.15.4 required to build
- 🐛 Default PREFIX to /opt/homebrew on Apple Silicon (arm64)
## [v1.7.1] 🐛 Search JSON Fix - 2020-09-06

View file

@ -24,11 +24,13 @@ VERSION=$(script/version)
INSTALL_TEMPORARY_FOLDER=${DSTROOT:-build/distributions}
# Final destination.
PREFIX=/usr/local
# Override default prefix path with optional 1st arg
if test -n "$1"; then
PREFIX="$1"
elif [[ $(uname -m) == 'arm64' ]]; then
PREFIX=/opt/homebrew
else
PREFIX=/usr/local
fi
echo "==> 📲 Installing mas ($VERSION) to $PREFIX"

View file

@ -6,11 +6,13 @@
# Removes mas and MasKit from PREFIX.
#
PREFIX=/usr/local
# Override default prefix path with optional 1st arg
if test -n "$1"; then
PREFIX="$1"
elif [[ $(uname -m) == 'arm64' ]]; then
PREFIX=/opt/homebrew
else
PREFIX=/usr/local
fi
echo "==> 🔥 Uninstalling mas from $PREFIX"