Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / macupdater.rb
blob4e36ba18e93c53975311422947b2d7829073789a
1 cask "macupdater" do
2   on_monterey :or_older do
3     version "2.3.18"
4     sha256 "81e7a1f64499128c131d169408829962ca913996830a7e19d372099e657d5894"
5   end
6   on_ventura :or_newer do
7     version "3.3.5"
8     # required as upstream package is regularly updated in-place https://github.com/Homebrew/homebrew-cask/pull/182188#issuecomment-2284199515
9     sha256 :no_check
11     binary "#{appdir}/MacUpdater.app/Contents/Resources/macupdater_install"
12   end
14   url "https://www.corecode.io/downloads/macupdater_#{version}.dmg"
15   name "MacUpdater"
16   desc "Track and update to the latest versions of installed software"
17   homepage "https://www.corecode.io/macupdater/index.html"
19   livecheck do
20     url "https://www.corecode.io/macupdater/macupdater#{version.major}.xml"
21     strategy :sparkle, &:short_version
22   end
24   auto_updates true
25   depends_on macos: ">= :mojave"
27   app "MacUpdater.app"
28   binary "#{appdir}/MacUpdater.app/Contents/Resources/macupdater_client"
30   uninstall launchctl: "com.corecode.MacUpdaterLaunchHelper",
31             quit:      "com.corecode.MacUpdater"
33   zap trash: [
34     "~/Library/Application Scripts/com.corecode.MacUpdaterLaunchHelper",
35     "~/Library/Application Support/MacUpdater*",
36     "~/Library/Caches/com.corecode.MacUpdater",
37     "~/Library/Containers/com.corecode.MacUpdaterLaunchHelper",
38     "~/Library/Cookies/com.corecode.MacUpdater.binarycookies",
39     "~/Library/Preferences/com.corecode.MacUpdater.plist",
40   ]
41 end