40 lines
1.5 KiB
Ruby
40 lines
1.5 KiB
Ruby
cask "skype-for-business" do
|
|
version "16.29.0.39"
|
|
sha256 "907e07dfd3787d793752d5e20cb8cd587792c1c43c9f2ebc93ffbb2e4e40948b"
|
|
|
|
url "https://download.microsoft.com/download/D/0/5/D055DA17-C7B8-4257-89A1-78E7BBE3833F/SkypeForBusinessInstaller-#{version}.pkg"
|
|
appcast "https://www.microsoft.com/download/details.aspx?id=54108"
|
|
name "Skype for Business"
|
|
desc "Microsofts instant messaging enterprise software"
|
|
homepage "https://www.microsoft.com/download/details.aspx?id=54108"
|
|
|
|
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"
|
|
|
|
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.plist",
|
|
"~/Library/Preferences/com.microsoft.SkypeForBusinessTAP.debuglogging.plist",
|
|
],
|
|
rmdir: "/Library/Application Support/Microsoft"
|
|
end
|