-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
/
chatmate-for-whatsapp.rb
38 lines (31 loc) · 1.22 KB
/
chatmate-for-whatsapp.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cask "chatmate-for-whatsapp" do
version "4.3.1,482,1537891987"
sha256 "af6b75282d8b0c0782246f771a4718675616cbdc6b62682a9e055641ab1e5ac7"
url "https://dl.devmate.com/net.coldx.mac.WhatsApp/#{version.csv.second}/#{version.csv.third}/ChatMateforWhatsApp-#{version.csv.second}.zip",
verified: "dl.devmate.com/net.coldx.mac.WhatsApp/"
name "ChatMate for WhatsApp"
desc "Extension app WhatsApp"
homepage "https://chatmate.io/"
livecheck do
url "https://updates.devmate.com/net.coldx.mac.WhatsApp.xml"
regex(%r{/(\d+)/ChatMateforWhatsApp\d*?[_-]v?(\d+(?:\.\d+)*)\.(?:dmg|zip)}i)
strategy :sparkle do |item, regex|
match = item.url.match(regex)
next if match.blank?
"#{item.short_version},#{match[2]},#{match[1]}"
end
end
depends_on macos: ">= :sierra"
app "ChatMate for WhatsApp.app"
zap trash: [
"~/Library/Application Support/ChatMate for WhatsApp",
"~/Library/Application Support/ColdX/net.coldx.mac.WhatsApp",
"~/Library/Caches/net.coldx.mac.WhatsApp",
"~/Library/Cookies/net.coldx.mac.WhatsApp.binarycookies",
"~/Library/Preferences/net.coldx.mac.WhatsApp.plist",
"~/Library/WebKit/net.coldx.mac.WhatsApp",
]
caveats do
requires_rosetta
end
end