excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / skype-for-business.rb
blob6d172a9b43b139fbe6c4d3d7b3363edd3805716a
1 cask "skype-for-business" do
2   version "16.31.0.11"
3   sha256 "85770014696bc422dec96e6986186adf41c12d49f456366294ca1874f3a80834"
5   url "https://download.microsoft.com/download/D/0/5/D055DA17-C7B8-4257-89A1-78E7BBE3833F/SkypeForBusinessInstaller-#{version}.pkg"
6   name "Skype for Business"
7   desc "Microsofts instant messaging enterprise software"
8   homepage "https://www.microsoft.com/en-us/download/details.aspx?id=54108"
10   livecheck do
11     url :homepage
12     regex(/SkypeForBusinessInstaller[._-]v?(\d+(?:\.\d+)+)\.pkg/i)
13   end
15   auto_updates true
16   depends_on cask: "microsoft-auto-update"
17   depends_on macos: ">= :el_capitan"
19   pkg "SkypeForBusinessInstaller-#{version}.pkg",
20       choices: [
21         {
22           "choiceIdentifier" => "com.microsoft.autoupdate.fba", # Office16_all_autoupdate_bootstrapper_updater.pkg
23           "choiceAttribute"  => "selected",
24           "attributeSetting" => 0,
25         },
26       ]
28   uninstall quit:       "com.microsoft.autoupdate2",
29             login_item: "Skype for Business",
30             pkgutil:    [
31               "com.microsoft.SkypeForBusiness",
32               "com.microsoft.SkypeForBusiness.MeetingJoinPlugin",
33             ],
34             delete:     "/Applications/Skype for Business.app"
36   zap trash: [
37         "/Library/Internet Plug-Ins/MeetingJoinPlugin.plugin",
38         "~/Library/Application Support/com.microsoft.SkypeForBusinessTAP",
39         "~/Library/Application Support/Skype for Business",
40         "~/Library/Preferences/com.microsoft.SkypeForBusinessTAP.debuglogging.plist",
41         "~/Library/Preferences/com.microsoft.SkypeForBusinessTAP.plist",
42       ],
43       rmdir: "/Library/Application Support/Microsoft"
44 end