homebrew-cask/Casks/p/poker-copilot.rb

24 lines
767 B
Ruby

cask "poker-copilot" do
version "7.48,9357"
sha256 "3f4fa1508d78d49afdd9efdb2f2c83abdde9292ef0a64f7b61ae2cdb17de919a"
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"
end