From a8b199adadde88c441b79faaa4cd7b422f6371af Mon Sep 17 00:00:00 2001 From: Alin Lupascu Date: Fri, 2 Aug 2024 22:31:57 -0600 Subject: [PATCH 1/5] Add Pearcleaner app --- Casks/p/pearcleaner.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Casks/p/pearcleaner.rb diff --git a/Casks/p/pearcleaner.rb b/Casks/p/pearcleaner.rb new file mode 100644 index 0000000000000..1759bc3027089 --- /dev/null +++ b/Casks/p/pearcleaner.rb @@ -0,0 +1,20 @@ +cask "pearcleaner" do + version "3.8.3" + sha256 "c7767d20fdb5ca544a061f1936ae9202922d25069eba85e83cdf770aaa838f2b" + + url "https://github.com/alienator88/Pearcleaner/releases/download/#{version}/Pearcleaner.zip" + name "Pearcleaner" + desc "Utility to cleanly uninstall apps and remove leftover files from old/uninstalled apps" + homepage "https://itsalin.com/appInfo/?id=pearcleaner" + + depends_on macos: ">= :ventura" + + app "Pearcleaner.app" + + uninstall quit: "com.alienator88.Pearcleaner", + launchctl: "com.alienator88.PearcleanerSentinel" + + zap trash: [ + "~/Library/Application Support/Pearcleaner", + ] +end From 05d951e7bdd86182e8b053ea43ac5ed2cc05c1c4 Mon Sep 17 00:00:00 2001 From: Alin Lupascu Date: Fri, 2 Aug 2024 22:54:02 -0600 Subject: [PATCH 2/5] Update pearcleaner.rb --- Casks/p/pearcleaner.rb | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Casks/p/pearcleaner.rb b/Casks/p/pearcleaner.rb index 1759bc3027089..6bea87fcb27ce 100644 --- a/Casks/p/pearcleaner.rb +++ b/Casks/p/pearcleaner.rb @@ -2,19 +2,23 @@ version "3.8.3" sha256 "c7767d20fdb5ca544a061f1936ae9202922d25069eba85e83cdf770aaa838f2b" - url "https://github.com/alienator88/Pearcleaner/releases/download/#{version}/Pearcleaner.zip" + url "https://github.com/alienator88/Pearcleaner/releases/download/#{version}/Pearcleaner.zip", + verified: "github.com/alienator88/Pearcleaner/" name "Pearcleaner" - desc "Utility to cleanly uninstall apps and remove leftover files from old/uninstalled apps" + desc "Utility to uninstall apps and remove leftover files from old/uninstalled apps" homepage "https://itsalin.com/appInfo/?id=pearcleaner" + livecheck do + url :url + strategy :github_latest + end + depends_on macos: ">= :ventura" app "Pearcleaner.app" - uninstall quit: "com.alienator88.Pearcleaner", - launchctl: "com.alienator88.PearcleanerSentinel" + uninstall launchctl: "com.alienator88.PearcleanerSentinel", + quit: "com.alienator88.Pearcleaner" - zap trash: [ - "~/Library/Application Support/Pearcleaner", - ] + zap trash: "~/Library/Application Support/Pearcleaner" end From 17543c796888cccac833425c85c7c37e9ae220d3 Mon Sep 17 00:00:00 2001 From: Alin Lupascu Date: Sat, 3 Aug 2024 13:32:47 -0600 Subject: [PATCH 3/5] Update Casks/p/pearcleaner.rb Co-authored-by: Klaus Hipp --- Casks/p/pearcleaner.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Casks/p/pearcleaner.rb b/Casks/p/pearcleaner.rb index 6bea87fcb27ce..3d2c98f9a9cca 100644 --- a/Casks/p/pearcleaner.rb +++ b/Casks/p/pearcleaner.rb @@ -8,11 +8,6 @@ desc "Utility to uninstall apps and remove leftover files from old/uninstalled apps" homepage "https://itsalin.com/appInfo/?id=pearcleaner" - livecheck do - url :url - strategy :github_latest - end - depends_on macos: ">= :ventura" app "Pearcleaner.app" From cc64a58d843fa406c9c358ad365fbfe296db2672 Mon Sep 17 00:00:00 2001 From: Alin Lupascu Date: Sat, 3 Aug 2024 14:42:10 -0600 Subject: [PATCH 4/5] Update Casks/p/pearcleaner.rb Co-authored-by: Klaus Hipp --- Casks/p/pearcleaner.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Casks/p/pearcleaner.rb b/Casks/p/pearcleaner.rb index 3d2c98f9a9cca..1645a431dd9dc 100644 --- a/Casks/p/pearcleaner.rb +++ b/Casks/p/pearcleaner.rb @@ -15,5 +15,14 @@ uninstall launchctl: "com.alienator88.PearcleanerSentinel", quit: "com.alienator88.Pearcleaner" - zap trash: "~/Library/Application Support/Pearcleaner" + zap trash: [ + "~/Library/Application Scripts/com.alienator88.Pearcleaner*", + "~/Library/Application Support/Pearcleaner", + "~/Library/Caches/com.alienator88.Pearcleaner", + "~/Library/Containers/com.alienator88.Pearcleaner*", + "~/Library/Group Containers/com.alienator88.Pearcleaner", + "~/Library/HTTPStorages/com.alienator88.Pearcleaner", + "~/Library/Preferences/com.alienator88.Pearcleaner.plist", + "~/Library/Saved Application State/com.alienator88.Pearcleaner.savedState", + ] end From a0d09977d1bf14d46b18e0a7a2910134e8a1195b Mon Sep 17 00:00:00 2001 From: Alin Lupascu Date: Sat, 3 Aug 2024 14:45:19 -0600 Subject: [PATCH 5/5] Update Casks/p/pearcleaner.rb Co-authored-by: Klaus Hipp --- Casks/p/pearcleaner.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Casks/p/pearcleaner.rb b/Casks/p/pearcleaner.rb index 1645a431dd9dc..a81af448a89fe 100644 --- a/Casks/p/pearcleaner.rb +++ b/Casks/p/pearcleaner.rb @@ -12,8 +12,9 @@ app "Pearcleaner.app" - uninstall launchctl: "com.alienator88.PearcleanerSentinel", - quit: "com.alienator88.Pearcleaner" + uninstall launchctl: "com.alienator88.PearcleanerSentinel*", + quit: "com.alienator88.Pearcleaner", + login_item: "Pearcleaner" zap trash: [ "~/Library/Application Scripts/com.alienator88.Pearcleaner*",