homebrew-cask/Casks/microsoft-excel.rb

49 lines
2.4 KiB
Ruby

cask 'microsoft-excel' do
version '16.37.20051002'
sha256 '907297001871f997666d04849beb3225326b836b22bea0c61370f9b002f48563'
# officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/ was verified as official when first introduced to the cask
url "https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_Excel_#{version}_Installer.pkg"
appcast 'https://docs.microsoft.com/en-us/officeupdates/update-history-office-for-mac'
name 'Microsoft Excel'
homepage 'https://products.office.com/en-US/excel'
auto_updates true
conflicts_with cask: 'microsoft-office'
depends_on macos: '>= :sierra'
pkg "Microsoft_Excel_#{version}_Installer.pkg"
uninstall pkgutil: [
'com.microsoft.package.Microsoft_Excel.app',
'com.microsoft.pkg.licensing',
],
launchctl: 'com.microsoft.office.licensingV2.helper'
zap trash: [
'~/Library/Application Scripts/com.microsoft.Excel',
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.excel.sfl*',
'~/Library/Caches/Microsoft/uls/com.microsoft.autoupdate.fba',
'~/Library/Caches/Microsoft/uls/com.microsoft.autoupdate2',
'~/Library/Caches/com.microsoft.autoupdate.fba',
'~/Library/Caches/com.microsoft.autoupdate2',
'~/Library/Containers/com.microsoft.Excel',
'~/Library/Cookies/com.microsoft.autoupdate.fba.binarycookies',
'~/Library/Cookies/com.microsoft.autoupdate2.binarycookies',
'~/Library/Preferences/com.microsoft.Excel.plist',
'~/Library/Preferences/com.microsoft.autoupdate.fba.plist',
'~/Library/Preferences/com.microsoft.autoupdate2.plist',
'~/Library/Saved Application State/com.microsoft.autoupdate2.savedState',
],
rmdir: [
'~/Library/Caches/Microsoft/uls',
'~/Library/Caches/Microsoft',
],
launchctl: [
'com.microsoft.autoupdate.helpertool',
'com.microsoft.autoupdate.helper',
'com.microsoft.update.agent',
],
pkgutil: 'com.microsoft.package.Microsoft_AutoUpdate.app'
end