📲 Update install script

This commit is contained in:
Ben Chatelain 2018-08-12 18:34:59 -06:00
parent 667e5e3678
commit fea363bee4

View file

@ -14,10 +14,15 @@ class Mas < Formula
depends_on :xcode => ["9.0", :build] depends_on :xcode => ["9.0", :build]
def install def install
xcodebuild "-project", "mas-cli.xcodeproj", # Install bundler, then use it to install gems used by project
"-scheme", "mas-cli Release", ENV["GEM_HOME"] = buildpath/"gem_home"
"-configuration", "Release", system "gem", "install", "bundler"
"SYMROOT=build" 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" bin.install "build/mas"
bash_completion.install "contrib/completion/mas-completion.bash" => "mas" bash_completion.install "contrib/completion/mas-completion.bash" => "mas"