43 lines
1.4 KiB
Ruby
43 lines
1.4 KiB
Ruby
class Fastlane < Formula
|
|
desc "Easiest way to build and release mobile apps"
|
|
homepage "https://fastlane.tools"
|
|
url "https://github.com/fastlane/fastlane/archive/2.150.3.tar.gz"
|
|
sha256 "469ceba4b7a78e39a9ef96b91b221a8cd7f55ed231276c8b41265a4a32f010be"
|
|
head "https://github.com/fastlane/fastlane.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "8c44424de31edd74b2c64dfa8002451d3063d362910310f0f72dd24e1254c471" => :catalina
|
|
sha256 "0137e64c6839a33d3d21586e1af02468348f0fa0b6b01ff70ae490feb5994a25" => :mojave
|
|
sha256 "9f4add0b2c1c9260622bacaf772e53120c1aeb838a797051afb23781db2ed36e" => :high_sierra
|
|
end
|
|
|
|
depends_on "ruby"
|
|
|
|
def install
|
|
ENV["GEM_HOME"] = libexec
|
|
ENV["GEM_PATH"] = libexec
|
|
|
|
system "gem", "build", "fastlane.gemspec"
|
|
system "gem", "install", "fastlane-#{version}.gem", "--no-document"
|
|
|
|
(bin/"fastlane").write <<~EOS
|
|
#!/bin/bash
|
|
export PATH="#{Formula["ruby"].opt_bin}:#{libexec}/bin:$PATH"
|
|
GEM_HOME="#{libexec}" GEM_PATH="#{libexec}" \\
|
|
exec "#{libexec}/bin/fastlane" "$@"
|
|
EOS
|
|
chmod "+x", bin/"fastlane"
|
|
end
|
|
|
|
test do
|
|
assert_match "fastlane #{version}", shell_output("#{bin}/fastlane --version")
|
|
|
|
actions_output = shell_output("#{bin}/fastlane actions")
|
|
assert_match "gym", actions_output
|
|
assert_match "pilot", actions_output
|
|
assert_match "screengrab", actions_output
|
|
assert_match "supply", actions_output
|
|
end
|
|
end
|