mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 13:00:23 +00:00
📲 Update install script
This commit is contained in:
parent
667e5e3678
commit
fea363bee4
1 changed files with 9 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue