Files
homebrew-cask/Casks/m/macupdater.rb

43 lines
1.3 KiB
Ruby

cask "macupdater" do
on_monterey :or_older do
version "2.3.11"
sha256 "5ff08ecca049af08074c10935080ec935803ea9620a8de939370ebcd82aff7cd"
depends_on macos: ">= :mojave"
end
on_ventura :or_newer do
version "3.2.4"
sha256 "12f1a6403bf16dc99264ddfd5dc2d683b0da8ad203d5b9c0730321cd0d1c8ce2"
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