mas/script/install
2018-10-17 15:57:57 -06:00

22 lines
323 B
Bash
Executable file

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