cask "wechatwork" do arch arm: "Apple", intel: "Intel" livecheck_folder = on_arch_conditional arm: "_arm64" on_arm do version "4.1.31.99548" sha256 "2c3cfb18ad77d9a4871e1f1eda8288a75564fe0f72bc2330cf534fa450dcb0af" end on_intel do version "4.1.31.91006" sha256 "32239dd8b988f8c70795e3a17a306bc89131ebf857b58043b4abe4eec2a1de8c" end url "https://dldir1.qq.com/foxmail/wecom-mac/updatebzl/WeCom_#{version}_#{arch}.dmg" name "WeChat Work" name "企业微信" desc "Messaging and calling application" homepage "https://work.weixin.qq.com/" livecheck do url "https://work.weixin.qq.com/wework_admin/commdownload?platform=mac#{livecheck_folder}" strategy :header_match end auto_updates true app "企业微信.app" uninstall quit: "com.tencent.WeWorkMac" zap trash: [ "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMac", "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMac.dev", "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMac.IPCHelper", "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMacDebug", "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMacUIDev", "~/Library/Application Scripts/com.tencent.WeWorkMac", "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMac", "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMac.dev", "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMac.IPCHelper", "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMacDebug", "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMacUIDev", "~/Library/Containers/com.tencent.WeWorkMac", ] end