excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / aliworkbench.rb
blob971daa85f98c484b4f300c52bb27351de11e2d46
1 cask "aliworkbench" do
2   version "9.59.05QNM"
3   sha256 "ed7e5337dd06308d733eb34031a7a251ae0efbdc603512b64a9ad96d0ac128f3"
5   url "https://download.alicdn.com/wangwang/AliworkbenchQN_(#{version}).dmg",
6       verified: "download.alicdn.com/wangwang/"
7   name "AliWorkBench"
8   name "Qian Niu"
9   name "千牛"
10   desc "Merchant workbench for Taobao and Tmall sellers"
11   homepage "https://work.taobao.com/"
13   livecheck do
14     url "https://pc.work.taobao.com/version/getOfficialVersion"
15     strategy :json do |json|
16       json["model"]&.map do |item|
17         next if item["platform"] != "mac"
19         item["version"]
20       end
21     end
22   end
24   depends_on macos: ">= :catalina"
26   app "AliWorkBench.app"
28   zap trash: [
29     "~/Library/Application Support/Aliworkbench",
30     "~/Library/Caches/com.taobao.Aliworkbench",
31     "~/Library/HTTPStorages/com.taobao.Aliworkbench*",
32     "~/Library/Preferences/com.taobao.Aliworkbench.plist",
33     "~/Library/Saved Application State/com.taobao.Aliworkbench.savedState",
34     "~/Library/WebKit/com.taobao.Aliworkbench",
35   ]
36 end