Files
homebrew-cask/Casks/w/wetype.rb
2023-12-05 04:52:13 -05:00

30 lines
915 B
Ruby

cask "wetype" do
version "1.0.1,250"
sha256 "be749c13ebec75b52cd9099525dc39227eafcfc9033fac93afec35a24b7eca64"
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