mas/script/install

23 lines
323 B
Text
Raw Normal View History

#!/bin/bash -e
PREFIX=/usr/local
INSTALL_TEMPORARY_FOLDER=/tmp/mas-cli.dst
echo "==> 📲 Installing mas to $PREFIX"
xcodebuild install
pushd "$INSTALL_TEMPORARY_FOLDER"
2018-10-17 21:57:57 +00:00
mkdir -p "$PREFIX/Frameworks/"
mv -v \
Frameworks/MasKit.framework \
"$PREFIX/Frameworks/"
2018-10-17 21:57:57 +00:00
mv -f \
bin/mas \
"$PREFIX/bin/"
popd