homebrew-cask/Casks/s/skype-for-business.rb

45 lines
1.6 KiB
Ruby

cask "skype-for-business" do
version "16.29.0.95"
sha256 "7e85e8a3640bc1187ccf6750554eeff9b80a85b4c5f0447f066e1156829d6f2e"
url "https://download.microsoft.com/download/D/0/5/D055DA17-C7B8-4257-89A1-78E7BBE3833F/SkypeForBusinessInstaller-#{version}.pkg"
name "Skype for Business"
desc "Microsofts instant messaging enterprise software"
homepage "https://www.microsoft.com/download/details.aspx?id=54108"
livecheck do
url :homepage
regex(/SkypeForBusinessInstaller[._-]v?(\d+(?:\.\d+)+)\.pkg/i)
end
auto_updates true
depends_on cask: "microsoft-auto-update"
depends_on macos: ">= :el_capitan"
pkg "SkypeForBusinessInstaller-#{version}.pkg",
choices: [
{
"choiceIdentifier" => "com.microsoft.autoupdate.fba", # Office16_all_autoupdate_bootstrapper_updater.pkg
"choiceAttribute" => "selected",
"attributeSetting" => 0,
},
]
uninstall delete: "/Applications/Skype for Business.app",
pkgutil: [
"com.microsoft.SkypeForBusiness",
"com.microsoft.SkypeForBusiness.MeetingJoinPlugin",
],
login_item: "Skype for Business",
quit: "com.microsoft.autoupdate2"
zap trash: [
"/Library/Internet Plug-Ins/MeetingJoinPlugin.plugin",
"~/Library/Application Support/com.microsoft.SkypeForBusinessTAP",
"~/Library/Application Support/Skype for Business",
"~/Library/Preferences/com.microsoft.SkypeForBusinessTAP.debuglogging.plist",
"~/Library/Preferences/com.microsoft.SkypeForBusinessTAP.plist",
],
rmdir: "/Library/Application Support/Microsoft"
end