mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
68 lines
2.7 KiB
Ruby
68 lines
2.7 KiB
Ruby
cask "microsoft-auto-update" do
|
|
on_el_capitan :or_older do
|
|
version "4.40.21101001"
|
|
sha256 "f638f7e0da9ee659c323f2ede0f176804bfe9a615a8f8b6320bd2e69d91ef2b2"
|
|
end
|
|
on_sierra :or_newer do
|
|
version "4.65.23112617"
|
|
sha256 "627a672ffc610b33733c8c8399944eaa06a08944ed4159a46f6b1d71f9322263"
|
|
end
|
|
|
|
url "https://officecdnmac.microsoft.com/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_AutoUpdate_#{version}_Updater.pkg"
|
|
name "Microsoft Auto Update"
|
|
desc "Provides updates to various Microsoft products"
|
|
homepage "https://docs.microsoft.com/officeupdates/release-history-microsoft-autoupdate"
|
|
|
|
livecheck do
|
|
url "https://go.microsoft.com/fwlink/?linkid=830196"
|
|
regex(/Microsoft[._-]AutoUpdate[._-]v?(\d+(?:\.\d+)+)[._-]Updater\.pkg/i)
|
|
strategy :header_match
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :mojave"
|
|
|
|
pkg "Microsoft_AutoUpdate_#{version}_Updater.pkg"
|
|
|
|
uninstall quit: [
|
|
"com.microsoft.autoupdate2",
|
|
"com.microsoft.autoupdate.fba",
|
|
"com.microsoft.errorreporting",
|
|
],
|
|
launchctl: [
|
|
"com.microsoft.autoupdate.helpertool",
|
|
"com.microsoft.autoupdate.helper",
|
|
"com.microsoft.update.agent",
|
|
],
|
|
pkgutil: [
|
|
"com.microsoft.package.Microsoft_AutoUpdate.app",
|
|
"com.microsoft.package.Microsoft_AU_Bootstrapper.app",
|
|
],
|
|
delete: [
|
|
"/Library/Caches/com.microsoft.autoupdate.fba",
|
|
"/Library/Caches/com.microsoft.autoupdate.helper",
|
|
"/Library/LaunchDaemons/com.microsoft.autoupdate.helper.plist",
|
|
"/Library/Preferences/com.microsoft.autoupdate2.plist",
|
|
"/Library/PrivilegedHelperTools/com.microsoft.autoupdate.helper",
|
|
]
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/Microsoft AutoUpdate",
|
|
"~/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/Cookies/com.microsoft.autoupdate.fba.binarycookies",
|
|
"~/Library/Cookies/com.microsoft.autoupdate2.binarycookies",
|
|
"~/Library/HTTPStorages/com.microsoft.autoupdate.fba",
|
|
"~/Library/HTTPStorages/com.microsoft.autoupdate2",
|
|
"~/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",
|
|
]
|
|
end
|