Merge pull request #200213 from Homebrew/bump-tidelift-1.14.0
[Homebrew/homebrew-cask.git] / Casks / w / wechatwork.rb
blob9c7a5e73b9c03aea9e6f946c33481c982e2ea197
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.32.99555"
7     sha256 "cc7949bef0a0a2c532065df64b9c1d6248ca8525ed743fe40dc731e855c87431"
8   end
9   on_intel do
10     version "4.1.32.91011"
11     sha256 "f4d3e59da94547a3eaf8fc8a4926f716116db0c61314893517348ebd79792628"
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
26   depends_on macos: ">= :sierra"
28   app "企业微信.app"
30   uninstall quit: "com.tencent.WeWorkMac"
32   zap trash: [
33     "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMac",
34     "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMac.dev",
35     "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMac.IPCHelper",
36     "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMacDebug",
37     "~/Library/Application Scripts/88L2Q4487U.com.tencent.WeWorkMacUIDev",
38     "~/Library/Application Scripts/com.tencent.WeWorkMac",
39     "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMac",
40     "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMac.dev",
41     "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMac.IPCHelper",
42     "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMacDebug",
43     "~/Library/Containers/88L2Q4487U.com.tencent.WeWorkMacUIDev",
44     "~/Library/Containers/com.tencent.WeWorkMac",
45   ]
46 end