homebrew-cask/Casks/a/aldente.rb

33 lines
1.1 KiB
Ruby

cask "aldente" do
version "1.25.2,52"
sha256 "18ab01b4e88ad1494677bbbea6bdce2738a152f50c905e6eb6c13366c222e9de"
url "https://apphousekitchen.com/aldente/AlDente#{version.csv.first}.dmg"
name "AlDente"
desc "Menu bar tool to limit maximum charging percentage"
homepage "https://apphousekitchen.com/"
livecheck do
url "https://apphousekitchen.com/aldente/AlDente-Pro.dmg"
strategy :extract_plist
end
auto_updates true
depends_on macos: ">= :big_sur"
app "AlDente.app"
uninstall launchctl: "com.apphousekitchen.aldente-pro.helper",
quit: "com.apphousekitchen.aldente-pro",
login_item: "AlDente",
delete: "/Library/PrivilegedHelperTools/com.apphousekitchen.aldente-pro.helper"
zap trash: [
"~/Library/Application Support/AlDente",
"~/Library/Caches/com.apphousekitchen.aldente-pro",
"~/Library/HTTPStorages/com.apphousekitchen.aldente-pro.binarycookies",
"~/Library/Preferences/com.apphousekitchen.aldente-pro.plist",
"~/Library/Preferences/com.apphousekitchen.aldente-pro_backup.plist",
]
end