mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
35 lines
1.1 KiB
Ruby
35 lines
1.1 KiB
Ruby
cask "bria" do
|
|
version "6.7.1,122281"
|
|
sha256 "2627f4cd7a0e59af0b6f59c29f2ba0b86c5f089fe1df2ad20e866d743da0922f"
|
|
|
|
url "https://counterpath.s3.amazonaws.com/downloads/Bria_#{version.csv.first}_#{version.csv.second}.dmg",
|
|
verified: "counterpath.s3.amazonaws.com/"
|
|
name "Bria"
|
|
desc "Softphone application"
|
|
homepage "https://www.counterpath.com/bria-solo/"
|
|
|
|
livecheck do
|
|
url "https://www.counterpath.com/downloads/Bria6ForMac.php"
|
|
regex(/Bria_(\d+(?:\.\d+)+)_(\d+)\.dmg/i)
|
|
strategy :header_match do |headers, regex|
|
|
match = headers["location"].match(regex)
|
|
next if match.blank?
|
|
|
|
"#{match[1]},#{match[2]}"
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :big_sur"
|
|
|
|
app "Bria.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/com.CounterPath_Corporation.Bria",
|
|
"~/Library/Caches/com.CounterPath_Corporation.Bria",
|
|
"~/Library/HTTPStorages/com.CounterPath_Corporation.Bria",
|
|
"~/Library/Preferences/com.CounterPath_Corporation.Bria.plist",
|
|
"~/Library/WebKit/com.CounterPath_Corporation.Bria",
|
|
]
|
|
end
|