Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Approov CLI from Homebrew

This repo holds the Approov CLI binaries for deployment to Homebrew
This repo holds the Homebrew **formula** for the Approov CLI. The binaries themselves are
published in [approov/approov-cli](https://github.com/approov/approov-cli/releases) alongside
the Windows and Linux packages, and are signed with checksums and a detached PGP signature.

To install use:

Expand All @@ -9,7 +11,10 @@ brew update
brew install approov/cli/approov
```

The latest binaries can also be downloaded directly from https://approov.io/downloads/approovcli.zip
Direct downloads for every platform, with verification instructions, are at
https://github.com/approov/approov-cli/releases/latest

Questions or problems: support@approov.io

# Approov CLI

Expand Down
44 changes: 31 additions & 13 deletions approov.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,39 @@
# Homebrew formula for the Approov CLI.
#
# Binaries come from the approov/approov-cli release repository; this tap holds only the
# formula. Update by bumping `version` and replacing both sha256 values with the matching
# lines from that release's SHA256SUMS:
#
# curl -fL https://github.com/approov/approov-cli/releases/download/v<ver>/SHA256SUMS
#
# The release pipeline opens that PR automatically for each new version.

class Approov < Formula
desc "Approov CLI tool"
tag = "3.6.0"
homepage "https://github.com/approov/homebrew-cli"
url "https://github.com/approov/homebrew-cli/releases/download/" + tag + "/approov-" + tag + ".tar.gz"
sha256 "bba03cfa75ed7c38f7554bf1676ab1ac654686245a77037c73054bfd4f55c04d"
desc "Administration and integration tooling for the Approov mobile app attestation service"
homepage "https://approov.io"
version "3.6.1"
# Commercial licence β€” no SPDX identifier applies.
license :cannot_represent

#bottle :unneeded
def install
on_linux do
bin.install "Linux/approov"
end
on_macos do
bin.install "MacOS/approov"
on_macos do
# Universal build: one binary serves both arm64 and x86_64.
url "https://github.com/approov/approov-cli/releases/download/v#{version}/approov-#{version}-darwin-universal.tar.gz"
sha256 "5ffbac49fdc774a105d3e3a1127f3152d249a99741d8c6d3a5a8b8b4a37c0b52"
end

on_linux do
on_intel do
url "https://github.com/approov/approov-cli/releases/download/v#{version}/approov-#{version}-linux-amd64.tar.gz"
sha256 "cf537a221784bc7616a3d9f845f7979178b552f00ceb22c1f37326fd94947092"
end
# No arm64 Linux build is published yet; add an on_arm block here when one ships.
end

def install
bin.install "approov"
end

test do
system "#{bin}/approov", "--version"
assert_match version.to_s, shell_output("#{bin}/approov --version")
end
end