35 lines
1.3 KiB
Ruby
35 lines
1.3 KiB
Ruby
class ChromeCli < Formula
|
|
desc "Control Google Chrome from the command-line"
|
|
homepage "https://github.com/prasmussen/chrome-cli"
|
|
url "https://github.com/prasmussen/chrome-cli/archive/1.7.1.tar.gz"
|
|
sha256 "27ee5ab9a9d60fbd829f069074fe592f2aafd129df0df4aedbbc12b8df11ac32"
|
|
license "MIT"
|
|
head "https://github.com/prasmussen/chrome-cli.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "835b7a9995ff61f7623ded6ce772d5ae712651aa690102c79afa0f989a6f5285"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "2ce2275e0b6f7d189ee64884027807b6dd9305b89e4c382dcf6da4425bea2482"
|
|
sha256 cellar: :any_skip_relocation, catalina: "8f263e2bc13457f68605d83e6aaf0dd26eda374e8342c955d97c497bd6b53a4b"
|
|
sha256 cellar: :any_skip_relocation, mojave: "0ab4cf9ab507b5403c98493840d126a3d0062d9a19f982c8ee58b0d3a73748b3"
|
|
end
|
|
|
|
depends_on xcode: :build
|
|
depends_on :macos
|
|
|
|
def install
|
|
# Release builds
|
|
xcodebuild "SYMROOT=build"
|
|
bin.install "build/Release/chrome-cli"
|
|
|
|
# Install wrapper scripts for chrome compatible browsers
|
|
bin.install "scripts/chrome-canary-cli"
|
|
bin.install "scripts/chromium-cli"
|
|
bin.install "scripts/brave-cli"
|
|
bin.install "scripts/vivaldi-cli"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/chrome-cli", "version"
|
|
end
|
|
end
|