homebrew-cask/Casks/teamviewer-host.rb

41 lines
1.6 KiB
Ruby

cask 'teamviewer-host' do
version '12'
sha256 :no_check # required as upstream package is updated in-place
url "https://download.teamviewer.com/download/version_#{version}x/TeamViewerHost.dmg"
name 'TeamViewer Host'
homepage 'https://www.teamviewer.com/'
auto_updates true
conflicts_with cask: 'teamviewer'
pkg 'Install TeamViewerHost.pkg'
uninstall pkgutil: 'com.teamviewer.*',
delete: [
'/Applications/TeamViewerHost.app',
"/Library/Fonts/TeamViewer#{version}Host.otf",
'/Library/PrivilegedHelperTools/com.teamviewer.Helper',
'/Library/Security/SecurityAgentPlugins/TeamViewerAuthPlugin.bundle',
],
launchctl: [
'com.teamviewer.Helper',
'com.teamviewer.desktop',
'com.teamviewer.service',
'com.teamviewer.teamviewer',
'com.teamviewer.teamviewer_service',
],
quit: 'com.teamviewer.TeamViewerHost'
zap delete: [
'~/Library/Caches/com.teamviewer.TeamViewerHost',
'~/Library/Logs/TeamViewer',
],
trash: [
'/Library/Preferences/com.teamviewer.teamviewer.preferences.plist',
'~/Library/Application Support/TeamViewer Host',
'~/Library/Preferences/com.teamviewer.teamviewer.preferences.plist',
'~/Library/Preferences/com.teamviewer.TeamViewerHost.plist',
]
end