mirror of
https://github.com/mas-cli/mas
synced 2024-11-26 05:20:18 +00:00
22 lines
323 B
Bash
Executable file
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
|