homebrew-cask/Casks/whatsapp.rb

32 lines
948 B
Ruby

cask "whatsapp" do
version "2.2146.9"
sha256 "8cafcc1b3dfb3598dbd35e1624c5b9a9653281fb0e2340e1886134d68bea7f0e"
url "https://web.whatsapp.com/desktop/mac/files/release-#{version}.zip"
name "WhatsApp"
desc "Desktop client for WhatsApp"
homepage "https://www.whatsapp.com/"
livecheck do
url "https://web.whatsapp.com/desktop/mac/releases"
strategy :page_match
regex(/release-(\d+(?:\.\d+)+)\.zip/i)
end
auto_updates true
conflicts_with cask: "homebrew/cask-versions/whatsapp-beta"
app "WhatsApp.app"
zap trash: [
"~/Library/Application Support/WhatsApp",
"~/Library/Application Support/WhatsApp.ShipIt",
"~/Library/Caches/WhatsApp",
"~/Library/Caches/WhatsApp.ShipIt",
"~/Library/Preferences/ByHost/WhatsApp.ShipIt.*.plist",
"~/Library/Preferences/WhatsApp.plist",
"~/Library/Preferences/WhatsApp-Helper.plist",
"~/Library/Saved Application State/WhatsApp.savedState",
]
end