excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / aptible.rb
blobf46db38c0b17576d5231b2dc71f07e24b14680d7
1 cask "aptible" do
2   version "0.23.0,20241202202624,gh-38"
3   sha256 "a6daf05521b7461bb321eb2178b92256a4dbe2ca1962dcee9b44065e8af7e9f9"
5   url "https://omnibus-aptible-toolbelt.s3.amazonaws.com/aptible/omnibus-aptible-toolbelt/master/#{version.csv.third}/pkg/aptible-toolbelt-#{version.csv.first}%2B#{version.csv.second}-mac-os-x.10.15.7-1.pkg",
6       verified: "omnibus-aptible-toolbelt.s3.amazonaws.com/"
7   name "Aptible Toolbelt"
8   desc "Command-line tool for Aptible Deploy, an audit-ready App Deployment Platform"
9   homepage "https://www.aptible.com/docs/reference/aptible-cli/overview"
11   livecheck do
12     url :homepage
13     regex(%r{href=.*?/((?:gh-)?\d+)/pkg/aptible-toolbelt[._-]v?(\d+(?:\.\d+)+)%2B(\d+)[._-]mac}i)
14     strategy :page_match do |page, regex|
15       page.scan(regex).map { |match| "#{match[1]},#{match[2]},#{match[0]}" }
16     end
17   end
19   depends_on formula: "libfido2"
21   pkg "aptible-toolbelt-#{version.csv.first}+#{version.csv.second}-mac-os-x.10.15.7-1.pkg"
23   uninstall pkgutil: "com.aptible.toolbelt"
25   zap trash: "/usr/local/bin/aptible"
26 end