Casks/p/poker-copilot.rb
cask "poker-copilot" do
version "7.49,9374"
sha256 "5bf0079fd916c4dcc958813433276f5330bafbf119bd5bf2006f4597c1c02131"
url "https://static.pokercopilot.com/pokercopilot_macos_#{version.csv.first.dots_to_underscores}_build_#{version.csv.second}.dmg"
name "Poker Copilot"
desc "Online poker HUD and tracking software"
homepage "https://pokercopilot.com/"
livecheck do
url :homepage
regex(%r{href=.*?/pokercopilot_macos[._-]v?(\d+(?:[._]\d+)+)[._-]build[._-](\d+)\.dmg}i)
strategy :page_match do |page|
page.scan(regex).map { |match| "#{match[0].tr("_", ".")},#{match[1]}" }
end
end
depends_on macos: ">= :el_capitan"
app "Poker Copilot.app"
zap trash: "~/Library/Application Support/com.barbarysoftware.pokercopilot"
caveats do
requires_rosetta
end
end