From fea363bee48b1bc3bb6b8caf5f2a38b21ef841ca Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Sun, 12 Aug 2018 18:34:59 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=B2=20Update=20install=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Homebrew/mas.rb | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Homebrew/mas.rb b/Homebrew/mas.rb index 19d18dd..11e4972 100644 --- a/Homebrew/mas.rb +++ b/Homebrew/mas.rb @@ -14,10 +14,15 @@ class Mas < Formula depends_on :xcode => ["9.0", :build] def install - xcodebuild "-project", "mas-cli.xcodeproj", - "-scheme", "mas-cli Release", - "-configuration", "Release", - "SYMROOT=build" + # Install bundler, then use it to install gems used by project + ENV["GEM_HOME"] = buildpath/"gem_home" + system "gem", "install", "bundler" + ENV.prepend_path "PATH", buildpath/"gem_home/bin" + system "bundle", "install" + system "bundle", "exec", "pod", "install" + + xcodebuild "-workspace", "mas-cli.xcworkspace", + "-scheme", "mas-cli Release" bin.install "build/mas" bash_completion.install "contrib/completion/mas-completion.bash" => "mas"