homebrew-cask/Casks/microsoft-word.rb

39 lines
1.5 KiB
Ruby

cask "microsoft-word" do
version "16.43.20110804"
sha256 "3d957d534fb2142f6e95a688552890a31f0d942796f0128ca837a3e98405d413"
url "https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_Word_#{version}_Installer.pkg",
verified: "officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/"
appcast "https://docs.microsoft.com/en-us/officeupdates/update-history-office-for-mac"
name "Microsoft Word"
homepage "https://products.office.com/en-US/word"
auto_updates true
conflicts_with cask: "microsoft-office"
depends_on cask: "microsoft-auto-update"
depends_on macos: ">= :sierra"
pkg "Microsoft_Word_#{version}_Installer.pkg",
choices: [
{
"choiceIdentifier" => "com.microsoft.autoupdate", # Office16_all_autoupdate.pkg
"choiceAttribute" => "selected",
"attributeSetting" => 0,
},
]
uninstall pkgutil: [
"com.microsoft.package.Microsoft_Word.app",
"com.microsoft.pkg.licensing",
],
launchctl: "com.microsoft.office.licensingV2.helper"
zap trash: [
"~/Library/Application Scripts/com.microsoft.Word",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.word.sfl*",
"~/Library/Application Support/CrashReporter/Microsoft Word_*.plist",
"~/Library/Containers/com.microsoft.Word",
"~/Library/Preferences/com.microsoft.Word.plist",
]
end