homebrew-core/Formula/ios-deploy.rb

37 lines
1.4 KiB
Ruby

class IosDeploy < Formula
desc "Install and debug iPhone apps from the command-line"
homepage "https://github.com/ios-control/ios-deploy"
url "https://github.com/ios-control/ios-deploy/archive/1.11.4.tar.gz"
sha256 "52aa0a5985fb5638c9b35351f7380b416651d172a460ca991fc02d1ae84611f6"
license all_of: ["GPL-3.0-or-later", "BSD-3-Clause"]
head "https://github.com/ios-control/ios-deploy.git"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "e85b52bd030eef2dfdc3f354fd4850fc6a09391e2822f48a1de8fed4d3581a4d"
sha256 cellar: :any_skip_relocation, big_sur: "b4490b2ef74d1e2b498bf9a5e79305dacbd2bed3c5e0dd6b93822e19953f2074"
sha256 cellar: :any_skip_relocation, catalina: "23244feccb6cf78da5eb83163c6a187acc3aa8248fa34eb909e1728b4876e5bb"
sha256 cellar: :any_skip_relocation, mojave: "2a5a3fd9d3288d48a75f4f85aaf72e98d0866edca7c5b56ba6d2ccf0d98e96b8"
end
depends_on xcode: :build
depends_on :macos
def install
xcodebuild "-configuration", "Release",
"SYMROOT=build",
"-arch", Hardware::CPU.arch
xcodebuild "test",
"-scheme", "ios-deploy-tests",
"-configuration", "Release",
"SYMROOT=build",
"-arch", Hardware::CPU.arch
bin.install "build/Release/ios-deploy"
end
test do
system "#{bin}/ios-deploy", "-V"
end
end