Merge pull request #156395 from PascalOchel/aldente

Update AlDente sources and improve uninstall routine
This commit is contained in:
Miccal Matthews
2023-09-29 09:27:12 +08:00
committed by GitHub
+11 -10
View File
@@ -1,15 +1,15 @@
cask "aldente" do
version "1.22.2"
version "1.22.2,42"
sha256 "6d1108d114b8c6f11c732c37c9e779683f281b9c260f98721bcdaa5b6b6a9440"
url "https://github.com/davidwernhart/AlDente/releases/download/#{version}/AlDente.dmg"
url "https://apphousekitchen.com/aldente/AlDente#{version.csv.first}.dmg"
name "AlDente"
desc "Menu bar tool to limit maximum charging percentage"
homepage "https://github.com/davidwernhart/AlDente"
homepage "https://apphousekitchen.com/"
livecheck do
url :url
strategy :github_latest
url "https://apphousekitchen.com/aldente/AlDente-Pro.dmg"
strategy :extract_plist
end
auto_updates true
@@ -17,15 +17,16 @@ cask "aldente" do
app "AlDente.app"
uninstall quit: "com.davidwernhart.Helper",
delete: [
"/Library/LaunchDaemons/com.apphousekitchen.aldente-pro.helper.plist",
"/Library/PrivilegedHelperTools/com.apphousekitchen.aldente-pro.helper",
]
uninstall quit: "com.apphousekitchen.aldente-pro",
launchctl: "com.apphousekitchen.aldente-pro.helper",
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_backup.plist",
"~/Library/Preferences/com.apphousekitchen.aldente-pro.plist",
]
end