Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / w / whatsapp@legacy.rb
blobef01da8e1452103b80d64cb71a99a8df688bfa16
1 cask "whatsapp@legacy" do
2   version "2.2437.54"
3   sha256 "a85519c5cabe3846986fe0b40c6b8b1124fc962d9c0d514087617d6528b334ab"
5   url "https://web.whatsapp.com/desktop/mac/files/release-#{version}.zip"
6   name "WhatsApp Legacy"
7   desc "Legacy desktop client for WhatsApp"
8   homepage "https://www.whatsapp.com/"
10   livecheck do
11     url "https://web.whatsapp.com/desktop/mac/releases"
12     strategy :json do |json|
13       json["name"]
14     end
15   end
17   auto_updates true
18   conflicts_with cask: [
19     "whatsapp",
20     "whatsapp@beta",
21   ]
23   app "WhatsApp.app"
25   zap trash: [
26     "~/Library/Application Support/WhatsApp",
27     "~/Library/Application Support/WhatsApp.ShipIt",
28     "~/Library/Caches/WhatsApp",
29     "~/Library/Caches/WhatsApp.ShipIt",
30     "~/Library/Preferences/ByHost/WhatsApp.ShipIt.*.plist",
31     "~/Library/Preferences/WhatsApp-Helper.plist",
32     "~/Library/Preferences/WhatsApp.plist",
33     "~/Library/Saved Application State/WhatsApp.savedState",
34   ]
36   caveats do
37     requires_rosetta
38   end
39 end