homebrew-cask/Casks/a/aldente.rb

33 lines
1.1 KiB
Ruby

cask "aldente" do
version "1.26.1,55"
sha256 "0a6a506b6403cae0f2501059bc2470e3f476e1c7011ecc39a86cf036534526ce"
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