mirror of
https://github.com/mas-cli/mas
synced 2024-11-21 19:23:01 +00:00
🍺 Require Xcode 9.3, use custom CocoaPods master repo
This commit is contained in:
parent
d519d30cf9
commit
01b84ef39c
2 changed files with 19 additions and 6 deletions
|
@ -15,9 +15,17 @@ class Mas < Formula
|
|||
sha256 "a99d0d7baecf45a00787365a2a078ae94068a0c63012e87f92282efb120e586e" => :yosemite
|
||||
end
|
||||
|
||||
depends_on :xcode => ["9.0", :build]
|
||||
depends_on :xcode => ["9.3", :build]
|
||||
|
||||
resource "cocoapods" do
|
||||
url "https://dl.bintray.com/phatblat/mas-bottles/master.tar.gz"
|
||||
sha256 "fd8f1b06a2a0276c9005241b45cc19393b7c39cfc91d08da92a307ea2416e966"
|
||||
end
|
||||
|
||||
def install
|
||||
# Pre-install a shallow copy of the CocoaPods master repo
|
||||
(buildpath/".brew_home/.cocoapods/repos/master").install resource("cocoapods")
|
||||
|
||||
# Install bundler, then use it to install gems used by project
|
||||
ENV["GEM_HOME"] = buildpath/"gem_home"
|
||||
system "gem", "install", "bundler"
|
||||
|
@ -27,8 +35,9 @@ class Mas < Formula
|
|||
|
||||
xcodebuild "-workspace", "mas-cli.xcworkspace",
|
||||
"-scheme", "mas-cli Release",
|
||||
"SYMROOT=build"
|
||||
bin.install "build/mas"
|
||||
"SYMROOT=#{buildpath.realpath}"
|
||||
|
||||
bin.install buildpath/"build/mas"
|
||||
|
||||
bash_completion.install "contrib/completion/mas-completion.bash" => "mas"
|
||||
end
|
||||
|
|
|
@ -11,12 +11,16 @@ class Mas < Formula
|
|||
sha256 "af5be6aa9902d9cfc2aa69dbf313441a7c201463d516face721f900ceae9556b" => :sierra
|
||||
end
|
||||
|
||||
depends_on :xcode => ["9.0", :build]
|
||||
depends_on "ruby" => :build if MacOS.version <= :sierra
|
||||
depends_on :xcode => ["9.3", :build]
|
||||
|
||||
resource "cocoapods" do
|
||||
url "https://dl.bintray.com/phatblat/mas-bottles/master.tar.gz"
|
||||
sha256 "fd8f1b06a2a0276c9005241b45cc19393b7c39cfc91d08da92a307ea2416e966"
|
||||
end
|
||||
|
||||
def install
|
||||
# Pre-install a shallow copy of the CocoaPods master repo
|
||||
system "git", "clone", "--depth", "1", "https://github.com/CocoaPods/Specs.git", File.expand_path("~/.cocoapods/repos/master")
|
||||
(buildpath/".brew_home/.cocoapods/repos/master").install resource("cocoapods")
|
||||
|
||||
# Install bundler, then use it to install gems used by project
|
||||
ENV["GEM_HOME"] = buildpath/"gem_home"
|
||||
|
|
Loading…
Reference in a new issue