excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / squirrel.rb
blob9ddd3118866d12a2c4de77301f43bbf32f1375ce
1 cask "squirrel" do
2   version "1.0.2"
3   sha256 "2912bf3435d5c85aa87b0eaa3f08a487888b8bbbe3b48ea0ccef1a5f8215cebf"
5   url "https://github.com/rime/squirrel/releases/download/#{version}/Squirrel-#{version}.pkg",
6       verified: "github.com/rime/squirrel/"
7   name "Squirrel"
8   desc "Rime input method engine"
9   homepage "https://rime.im/"
11   auto_updates true
12   depends_on macos: ">= :ventura"
14   pkg "Squirrel-#{version}.pkg"
16   uninstall pkgutil: [
17               "com.googlecode.rimeime.Squirrel.pkg", # Package name of older versions (< 0.10.0)
18               "im.rime.inputmethod.Squirrel",
19             ],
20             delete:  "/Library/Input Methods/Squirrel.app"
22   zap trash: [
23     "~/Library/Caches/com.googlecode.rimeime.inputmethod.Squirrel",
24     "~/Library/Caches/im.rime.inputmethod.Squirrel",
25     "~/Library/Preferences/com.googlecode.rimeime.inputmethod.Squirrel.plist",
26     "~/Library/Preferences/im.rime.inputmethod.Squirrel.plist",
27   ]
28 end