cask "loginputmac" do version "3.4.0,12461" sha256 "2853f0da2856743d90c76664d948be274051c8163446d79e86ffcb69a9c61228" url "https://loginput-mac2.totest.top/LogInputMac#{version.csv.first.major}.app#{version.csv.second}.zip", verified: "loginput-mac2.totest.top/" name "LoginputMac" desc "Chinese input method" homepage "https://im.logcg.com/loginputmac#{version.major}" livecheck do url "https://im.logcg.com/appcast#{version.major}.xml" strategy :sparkle end auto_updates true depends_on macos: ">= :high_sierra" app "LogInputMac#{version.csv.first.major}.app" uninstall quit: "com.logcg.inputmethod.LogInputMac#{version.major}" zap trash: [ "~/Documents/落格输入法", "~/Library/Application Support/com.logcg.inputmethod.LogInputMac#{version.major}", "~/Library/Application Support/LogInputMac#{version.major}", "~/Library/Caches/com.logcg.inputmethod.LogInputMac#{version.major}", "~/Library/HTTPStorages/com.logcg.inputmethod.LogInputMac#{version.major}", "~/Library/Preferences/com.logcg.inputmethod.LogInputMac#{version.major}.plist", "~/Library/Saved Application State/com.logcg.inputmethod.LogInputMac#{version.major}.Settings.savedState", ] end