From d42010ba9a2fe48ae8db25149a615919b039cadc Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Wed, 17 Oct 2018 15:43:02 -0600 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20simple=20install=20script=20f?= =?UTF-8?q?or=20homebrew?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Homebrew/mas.rb | 1 - script/install | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 script/install 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