34 lines
1.0 KiB
Ruby
34 lines
1.0 KiB
Ruby
cask "bria" do
|
|
version "6.6.3,120009"
|
|
sha256 "83d67ce025fbfc5a7ff08bdef9f63086992bcb7fb67ec578a801e57d5c941c99"
|
|
|
|
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
|
|
|
|
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
|