excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / appcleaner.rb
blobaa676b8c15697e61c3ecc7f3fc45803512d0c4ba
1 cask "appcleaner" do
2   on_sierra :or_older do
3     version "3.4"
4     sha256 "0c60d929478c1c91e0bad76d3c04795665c07a05e45e33321db845429c9aefa8"
6     livecheck do
7       skip "Legacy version"
8     end
9   end
10   on_high_sierra do
11     version "3.6"
12     sha256 "812bcacd845fac07e073130d3fe4c5f037815d0774a9782e0e309fced1bded1c"
14     livecheck do
15       skip "Legacy version"
16     end
17   end
18   on_mojave :or_newer do
19     version "3.6.8"
20     sha256 "e012f729442473c20e7cce334b00182521e4b6672ea681b34931b180feb3d6be"
22     livecheck do
23       url "https://freemacsoft.net/appcleaner/Updates.xml"
24       strategy :sparkle, &:short_version
25     end
26   end
28   url "https://www.freemacsoft.net/downloads/AppCleaner_#{version}.zip"
29   name "FreeMacSoft AppCleaner"
30   desc "Application uninstaller"
31   homepage "https://freemacsoft.net/appcleaner/"
33   auto_updates true
35   app "AppCleaner.app"
37   uninstall launchctl: "net.freemacsoft.AppCleaner-SmartDelete",
38             quit:      "net.freemacsoft.AppCleaner"
40   zap trash: [
41     "~/Library/Caches/net.freemacsoft.AppCleaner",
42     "~/Library/HTTPStorages/net.freemacsoft.AppCleaner",
43     "~/Library/Preferences/net.freemacsoft.AppCleaner-SmartDelete.plist",
44     "~/Library/Preferences/net.freemacsoft.AppCleaner.plist",
45     "~/Library/Saved Application State/net.freemacsoft.AppCleaner.savedState",
46   ]
47 end