/
wetype.rb
29 lines (23 loc) 路 915 Bytes
/
wetype.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cask "wetype" do
version "1.0.5,315"
sha256 "08bacd54a60edf13171d932468efd12a9dad887727939225bea761459c38915e"
url "https://wetype.wxqcloud.qq.com/app/mac/#{version.csv.first}/WeTypeInstaller_#{version.csv.first}_#{version.csv.second}.zip"
name "WeType"
desc "Text input app"
homepage "https://z.weixin.qq.com/"
livecheck do
strategy :sparkle
url "https://download.weread.qq.com/app/wxkb/mac/updates.xml"
end
auto_updates true
depends_on macos: ">= :catalina"
installer manual: "WeTypeInstaller_#{version.csv.first}_#{version.csv.second}.app"
uninstall delete: "/Library/Input Methods/WeType.app"
zap trash: [
"~/Library/Application Support/WeType",
"~/Library/Caches/com.tencent.inputmethod.wetype",
"~/Library/Caches/WeType",
"~/Library/HTTPStorages/com.tencent.inputmethod.wetype",
"~/Library/Preferences/com.tencent.inputmethod.wetype.plist",
]
end