diff --git a/Homebrew/mas.rb b/Homebrew/mas.rb index 08680ab..0b2c0a0 100644 --- a/Homebrew/mas.rb +++ b/Homebrew/mas.rb @@ -31,7 +31,6 @@ class Mas < Formula "OBJROOT=#{buildpath.realpath}", "SYMROOT=#{buildpath.realpath}" - system "script/package" system "script/install" bash_completion.install "contrib/completion/mas-completion.bash" => "mas" diff --git a/script/install b/script/install new file mode 100755 index 0000000..fbeaf19 --- /dev/null +++ b/script/install @@ -0,0 +1,20 @@ +#!/bin/bash -e + +PREFIX=/usr/local +INSTALL_TEMPORARY_FOLDER=/tmp/mas-cli.dst + +echo "==> 📲 Installing mas to $PREFIX" + +xcodebuild install + +pushd "$INSTALL_TEMPORARY_FOLDER" + +rsync --archive --delete \ + Frameworks/MasKit.framework \ + "$PREFIX/Frameworks/" + +cp -f \ + bin/mas \ + "$PREFIX/bin/" + +popd