From 3e469fe8172327e343ec79ef45050be0448aa285 Mon Sep 17 00:00:00 2001 From: HuaDeity Date: Sat, 11 Nov 2023 15:34:45 +0800 Subject: [PATCH 1/2] add minimum OS version and zap trash --- Casks/d/douyin.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Casks/d/douyin.rb b/Casks/d/douyin.rb index e1777417e3..cb0c00fe01 100644 --- a/Casks/d/douyin.rb +++ b/Casks/d/douyin.rb @@ -17,9 +17,17 @@ cask "douyin" do end auto_updates true + depends_on macos: ">= :high_sierra" app "抖音.app" - zap trash: "~/Library/Preferences/com.bytedance.douyin.desktop.plist", + zap trash: [ + "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.bytedance.douyin.desktop.sfl3", + "~/Library/Caches/com.bytedance.douyin.desktop", + "~/Library/HTTPStorages/com.bytedance.douyin.desktop", + "~/Library/Logs/douyin", + "~/Library/Preferences/com.bytedance.douyin.desktop.plist", + "~/Library/Saved Application State/com.bytedance.douyin.desktop.savedState", + ], rmdir: "~/Library/Application Support/抖音" end From 3cc59e3b597662aae9ac4079fdde4b03a2e40c39 Mon Sep 17 00:00:00 2001 From: Justin Krehel <39449589+krehel@users.noreply.github.com> Date: Sat, 11 Nov 2023 09:45:36 -0500 Subject: [PATCH 2/2] Update douyin.rb --- Casks/d/douyin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Casks/d/douyin.rb b/Casks/d/douyin.rb index cb0c00fe01..84ead93d55 100644 --- a/Casks/d/douyin.rb +++ b/Casks/d/douyin.rb @@ -22,7 +22,7 @@ cask "douyin" do app "抖音.app" zap trash: [ - "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.bytedance.douyin.desktop.sfl3", + "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.bytedance.douyin.desktop.*", "~/Library/Caches/com.bytedance.douyin.desktop", "~/Library/HTTPStorages/com.bytedance.douyin.desktop", "~/Library/Logs/douyin",