cask "dingtalk" do version "7.6.15,40104038" sha256 "2a733ecaa5274a347931f3d5eca64812e82573bb2cc6dc7a3c1bdfab24747e47" url "https://dtapp-pub.dingtalk.com/dingtalk-desktop/mac_dmg/Release/M1-Beta/DingTalk_v#{version.csv.first}_#{version.csv.second}_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" strategy :sparkle 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