From 645abc08189b31c0da49fe939163d89c5ff94d68 Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Wed, 2 Feb 2022 12:34:08 +0800 Subject: [PATCH] Update teamviewer.rb --- Casks/teamviewer.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Casks/teamviewer.rb b/Casks/teamviewer.rb index f31e315a17f6..90e386c69bb5 100644 --- a/Casks/teamviewer.rb +++ b/Casks/teamviewer.rb @@ -27,15 +27,20 @@ if MacOS.version <= :high_sierra pkg "Install TeamViewer.pkg" + elsif MacOS.version == :catalina + # This Cask should be installed and uninstalled manually on Catalina. + # See https://github.com/Homebrew/homebrew-cask/issues/76829 + installer manual: "Install TeamViewer.app/Contents/Resources/Install TeamViewer.pkg" else pkg "Install TeamViewer.app/Contents/Resources/Install TeamViewer.pkg" end if MacOS.version == :catalina - uninstall delete: "#{staged_path}/#{token}" # This Cask should be uninstalled manually. + # This Cask should be installed and uninstalled manually on Catalina. + # See https://github.com/Homebrew/homebrew-cask/issues/76829 + uninstall delete: "#{staged_path}/#{token}" else uninstall delete: [ - "#{staged_path}/#{token}", # This Cask should be uninstalled manually. "/Applications/TeamViewer.app", "/Library/Preferences/com.teamviewer.teamviewer.preferences.plist", ],