mirror of
https://github.com/mas-cli/mas
synced 2025-02-16 12:38:30 +00:00
🐛 Default PREFIX to /opt/homebrew on Apple Silicon (arm64)
This commit is contained in:
parent
fd9e1767b2
commit
e8cdd18748
3 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue