Skip to content

Commit

Permalink
Update teamviewer.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
miccal authored Feb 2, 2022
1 parent 5e59759 commit 645abc0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Casks/teamviewer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
Expand Down

0 comments on commit 645abc0

Please sign in to comment.