From 63326821c16db2926b5fe28ccd8b1c55f871b351 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Tue, 14 Nov 2023 13:39:21 +0800 Subject: [PATCH] sourcetree: update `depends_on` and `zap` --- Casks/s/sourcetree.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Casks/s/sourcetree.rb b/Casks/s/sourcetree.rb index cacd252658..cd7de1faa3 100644 --- a/Casks/s/sourcetree.rb +++ b/Casks/s/sourcetree.rb @@ -9,6 +9,8 @@ cask "sourcetree" do livecheck do skip "Legacy version" end + + depends_on macos: ">= :el_capitan" end on_high_sierra do version "3.2.1,225" @@ -43,6 +45,8 @@ cask "sourcetree" do url "https://product-downloads.atlassian.com/software/sourcetree/Appcast/SparkleAppcast.xml" strategy :sparkle end + + depends_on macos: ">= :catalina" end name "Atlassian SourceTree" @@ -50,7 +54,6 @@ cask "sourcetree" do homepage "https://www.sourcetreeapp.com/" auto_updates true - depends_on macos: ">= :el_capitan" app "Sourcetree.app" binary "#{appdir}/Sourcetree.app/Contents/Resources/stree" @@ -59,7 +62,7 @@ cask "sourcetree" do quit: "com.torusknot.SourceTreeNotMAS" zap trash: [ - "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.torusknot.sourcetreenotmas.sfl2", + "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.torusknot.sourcetreenotmas.sfl*", "~/Library/Application Support/SourceTree", "~/Library/Caches/com.torusknot.SourceTreeNotMAS", "~/Library/Logs/Sourcetree",