mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 11:33:13 +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]
|
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"
|
||||||
|
|
Loading…
Reference in a new issue