homebrew-cask/Casks/m/macupdater.rb

43 lines
1.3 KiB
Ruby

cask "macupdater" do
on_monterey :or_older do
version "2.3.8"
sha256 "bbf8f310ee2e0857e7e34b6b1456e5e03484848616c2ebe7799e4f840536139b"
depends_on macos: ">= :mojave"
end
on_ventura :or_newer do
version "3.1.2"
sha256 "81c62949238526453ce2b23f4deb15dc5b32e43230868d060f11420a221fce7d"
depends_on macos: ">= :ventura"
end
url "https://www.corecode.io/downloads/macupdater_#{version}.dmg"
name "MacUpdater"
desc "Track and update to the latest versions of installed software"
homepage "https://www.corecode.io/macupdater/index.html"
livecheck do
url "https://www.corecode.io/macupdater/macupdater#{version.major}.xml"
strategy :sparkle, &:short_version
end
auto_updates true
app "MacUpdater.app"
binary "#{appdir}/MacUpdater.app/Contents/Resources/macupdater_client"
uninstall quit: "com.corecode.MacUpdater",
launchctl: "com.corecode.MacUpdaterLaunchHelper"
zap trash: [
"~/Library/Application Scripts/com.corecode.MacUpdaterLaunchHelper",
"~/Library/Application Support/MacUpdater",
"~/Library/Application Support/MacUpdaterInstallHelper",
"~/Library/Caches/com.corecode.MacUpdater",
"~/Library/Containers/com.corecode.MacUpdaterLaunchHelper",
"~/Library/Cookies/com.corecode.MacUpdater.binarycookies",
"~/Library/Preferences/com.corecode.MacUpdater.plist",
]
end