1 cask "microsoft-teams" do
2 version "24295.606.3238.6194"
3 sha256 "fccf2c82a08f23ba424147c2753e82e72a24d78146d10a50f6e035e37b0a4f9b"
5 url "https://statics.teams.cdn.office.net/production-osx/#{version}/MicrosoftTeams.pkg",
6 verified: "statics.teams.cdn.office.net/production-osx/"
8 desc "Meet, chat, call, and collaborate in just one place"
9 homepage "https://www.microsoft.com/en/microsoft-teams/group-chat-software/"
11 # Microsoft releases multiple versions and builds of Teams, as listed here:
12 # https://raw.githubusercontent.com/ItzLevvie/MicrosoftTeams-msinternal/master/defconfig
14 # https://raw.githubusercontent.com/ItzLevvie/MicrosoftTeams-msinternal/master/defconfig2
16 # We only track the "production build"/"Public (R4) build" version,
17 # which agrees with the version reported by `livecheck`.
19 # Any pull request that updates this Cask to a version that
20 # differs from the `livecheck` version will be closed.
22 url "https://config.teams.microsoft.com/config/v1/MicrosoftTeams/#{version}?environment=prod&audienceGroup=general&teamsRing=general&agent=TeamsBuilds"
23 strategy :json do |json|
24 json.dig("BuildSettings", "WebView2", "macOS", "latestVersion")
29 conflicts_with cask: "microsoft-office-businesspro"
30 depends_on cask: "microsoft-auto-update"
31 depends_on macos: ">= :big_sur"
33 pkg "MicrosoftTeams.pkg",
36 "choiceIdentifier" => "com.microsoft.autoupdate",
37 "choiceAttribute" => "selected",
38 "attributeSetting" => 0,
42 uninstall launchctl: "com.microsoft.teams.TeamsUpdaterDaemon",
43 quit: "com.microsoft.autoupdate2",
45 "com.microsoft.MSTeamsAudioDevice",
46 "com.microsoft.package.Microsoft_AutoUpdate.app",
47 "com.microsoft.teams2",
50 "/Applications/Microsoft Teams.app",
51 "/Library/Application Support/Microsoft/TeamsUpdaterDaemon",
52 "/Library/Logs/Microsoft/MSTeams",
53 "/Library/Logs/Microsoft/Teams",
54 "/Library/Preferences/com.microsoft.teams.plist",
58 "~/Library/Application Scripts/com.microsoft.teams2",
59 "~/Library/Application Scripts/com.microsoft.teams2.launcher",
60 "~/Library/Application Scripts/com.microsoft.teams2.notificationcenter",
61 "~/Library/Application Support/com.microsoft.teams",
62 "~/Library/Application Support/Microsoft/Teams",
63 "~/Library/Application Support/Teams",
64 "~/Library/Caches/com.microsoft.teams",
65 "~/Library/Containers/com.microsoft.teams2",
66 "~/Library/Containers/com.microsoft.teams2.launcher",
67 "~/Library/Containers/com.microsoft.teams2.notificationcenter",
68 "~/Library/Cookies/com.microsoft.teams.binarycookies",
69 "~/Library/Group Containers/*.com.microsoft.teams",
70 "~/Library/HTTPStorages/com.microsoft.teams",
71 "~/Library/HTTPStorages/com.microsoft.teams.binarycookies",
72 "~/Library/Logs/Microsoft Teams Helper (Renderer)",
73 "~/Library/Logs/Microsoft Teams",
74 "~/Library/Preferences/com.microsoft.teams.plist",
75 "~/Library/Saved Application State/com.microsoft.teams.savedState",
76 "~/Library/Saved Application State/com.microsoft.teams2.savedState",
77 "~/Library/WebKit/com.microsoft.teams",
79 rmdir: "~/Library/Application Support/Microsoft"