38 lines
1.2 KiB
Ruby
38 lines
1.2 KiB
Ruby
cask "dingtalk" do
|
|
version "7.5.30_37289100"
|
|
sha256 "c1e7e64b4fa2000c006303ba0643d929142545acaa7f4fbb7d6c3520fbc640f4"
|
|
|
|
url "https://dtapp-pub.dingtalk.com/dingtalk-desktop/mac_dmg/Release/M1-Beta/DingTalk_v#{version}_universal.dmg"
|
|
name "DingTalk"
|
|
name "钉钉"
|
|
desc "Teamwork app by Alibaba Group"
|
|
homepage "https://www.dingtalk.com/"
|
|
|
|
livecheck do
|
|
url "https://im.dingtalk.com/manifest/appcast_gray_release.xml"
|
|
regex(/DingTalk[._-]v?(\d+(?:[._]\d+)+)[._-]universal\.dmg/i)
|
|
strategy :sparkle do |item|
|
|
item.url[regex, 1]
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
|
|
app "DingTalk.app"
|
|
|
|
uninstall quit: "com.alibaba.DingTalkMac"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/DingTalkMac",
|
|
"~/Library/Caches/com.alibaba.DingTalkInstaller",
|
|
"~/Library/Caches/com.alibaba.DingTalkMac",
|
|
"~/Library/Caches/DingTalk",
|
|
"~/Library/Preferences/com.alibaba.DingTalk-Helper.plist",
|
|
"~/Library/Preferences/com.alibaba.DingTalkInstaller.plist",
|
|
"~/Library/Preferences/com.alibaba.DingTalkMac.plist",
|
|
"~/Library/Preferences/com.dingtalk.mac.plist",
|
|
"~/Library/Saved Application State/com.alibaba.DingTalkMac.savedState",
|
|
"~/Library/WebKit/com.alibaba.DingTalkMac",
|
|
]
|
|
end
|