homebrew-cask/Casks/microsoft-teams.rb

55 lines
2.1 KiB
Ruby

cask "microsoft-teams" do
version "1.6.00.1159"
sha256 "2168d0464ad52462e2214536d3092b50f816a49c2381df780559f39e3b51569f"
url "https://statics.teams.cdn.office.net/production-osx/#{version}/Teams_osx.pkg",
verified: "statics.teams.cdn.office.net/production-osx/"
name "Microsoft Teams"
desc "Meet, chat, call, and collaborate in just one place"
homepage "https://teams.microsoft.com/downloads"
# Microsoft releases multiple versions and builds of Teams, as listed here:
# https://raw.githubusercontent.com/ItzLevvie/MicrosoftTeams-msinternal/master/defconfig
# and here:
# https://raw.githubusercontent.com/ItzLevvie/MicrosoftTeams-msinternal/master/defconfig2
#
# We only track the "production build"/"Public (R4) build" version,
# which agrees with the version reported by `livecheck`.
#
# Any pull request that updates this Cask to a version that
# differs from the `livecheck` version will be closed.
livecheck do
url "https://aka.ms/teamsmac"
strategy :header_match
end
auto_updates true
conflicts_with cask: "microsoft-office-businesspro"
pkg "Teams_osx.pkg"
uninstall pkgutil: [
"com.microsoft.MSTeamsAudioDevice",
"com.microsoft.teams",
],
launchctl: "com.microsoft.teams.TeamsUpdaterDaemon",
delete: [
"/Applications/Microsoft Teams.app",
"/Library/Logs/Microsoft/Teams",
"/Library/Preferences/com.microsoft.teams.plist",
]
zap trash: [
"~/Library/Application Support/com.microsoft.teams",
"~/Library/Application Support/Microsoft/Teams",
"~/Library/Application Support/Teams",
"~/Library/Caches/com.microsoft.teams",
"~/Library/Cookies/com.microsoft.teams.binarycookies",
"~/Library/Logs/Microsoft Teams",
"~/Library/Preferences/com.microsoft.teams.plist",
"~/Library/Saved Application State/com.microsoft.teams.savedState",
"~/Library/WebKit/com.microsoft.teams",
],
rmdir: "~/Library/Application Support/Microsoft"
end