From 9c40dc7bd4481310792bdf797b19e765f49fde79 Mon Sep 17 00:00:00 2001 From: Klaus Hipp Date: Mon, 10 Jun 2024 12:43:31 +0200 Subject: [PATCH] fetch: add zap stanza --- Casks/f/fetch.rb | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Casks/f/fetch.rb b/Casks/f/fetch.rb index 4265d860a9dc1..a6fb0c9876c9e 100644 --- a/Casks/f/fetch.rb +++ b/Casks/f/fetch.rb @@ -8,9 +8,19 @@ homepage "https://fetchsoftworks.com/fetch/" livecheck do - url "https://updates.fetchsoftworks.com/list/fetch-#{version.major}K0-release.xml" - strategy :sparkle, &:short_version + url "https://fetchsoftworks.com/fetch/release-notes/" + regex(/href=.*Fetch[._-]v?(\d+(?:\.\d+)+)\.zip"/i) end + depends_on macos: ">= :high_sierra" + app "Fetch.app" + + zap trash: [ + "~/Library/Application Support/com.fetchsoftworks.Fetch", + "~/Library/Caches/com.apple.helpd/Generated/com.fetchsoftworks.fetch.help*", + "~/Library/HTTPStorages/com.fetchsoftworks.Fetch", + "~/Library/Preferences/com.fetchsoftworks.Fetch.plist", + "~/Library/Saved Application State/com.fetchsoftworks.Fetch.savedState", + ] end