excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / w / wechatwork.rb
blobc96599d00ad8495cfb5bdad07f58e53adcd05d13
1 cask "wechatwork" do
2   arch arm: "Apple", intel: "Intel"
3   livecheck_folder = on_arch_conditional arm: "_arm64"
5   on_arm do
6     version "4.1.31.99548"
7     sha256 "2c3cfb18ad77d9a4871e1f1eda8288a75564fe0f72bc2330cf534fa450dcb0af"
8   end
9   on_intel do
10     version "4.1.31.91006"
11     sha256 "32239dd8b988f8c70795e3a17a306bc89131ebf857b58043b4abe4eec2a1de8c"
12   end
14   url "https://dldir1.qq.com/foxmail/wecom-mac/updatebzl/WeCom_#{version}_#{arch}.dmg"
15   name "WeChat Work"
16   name "企业微信"
17   desc "Messaging and calling application"
18   homepage "https://work.weixin.qq.com/"
20   livecheck do
21     url "https://work.weixin.qq.com/wework_admin/commdownload?platform=mac#{livecheck_folder}"
22     strategy :header_match
23   end
25   auto_updates true
27   app "企业微信.app"
29   uninstall quit: "com.tencent.WeWorkMac"
31   zap trash: [
32     "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMac",
33     "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMac.dev",
34     "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMac.IPCHelper",
35     "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMacDebug",
36     "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMacUIDev",
37     "~/Library/Application Scripts/com.tencent.WeWorkMac",
38     "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMac",
39     "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMac.dev",
40     "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMac.IPCHelper",
41     "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMacDebug",
42     "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMacUIDev",
43     "~/Library/Containers/com.tencent.WeWorkMac",
44   ]
45 end