homebrew-cask/Casks/beeper.rb

28 lines
698 B
Ruby
Raw Normal View History

2021-05-20 07:36:44 +08:00
cask "beeper" do
2021-10-14 12:22:49 +08:00
arch = Hardware::CPU.intel? ? "x64" : "arm64"
2021-05-20 07:36:44 +08:00
version "2.12.9"
2021-10-14 12:22:49 +08:00
sha256 :no_check
2021-05-20 07:36:44 +08:00
2021-10-14 12:22:49 +08:00
url "https://download.beeper.com/mac/dmg/#{arch}"
2021-05-20 07:36:44 +08:00
name "Beeper"
desc "Universal chat app powered by Matrix, unifying 15 different chat networks"
homepage "https://www.beeper.com/"
livecheck do
url :url
strategy :header_match
regex(/Beeper(?:%20|[ ._-])?(\d+(?:\.\d+)+)(?:[._-]#{arch})?\.dmg/i)
2021-05-20 07:36:44 +08:00
end
app "Beeper.app"
zap trash: [
"~/Library/Application Support/Beeper",
"~/Library/Caches/im.beeper",
"~/Library/Caches/im.beeper.ShipIt",
"~/Library/Preferences/im.beeper.plist",
"~/Library/Saved Application State/im.beeper.savedState",
]
end