homebrew-cask/Casks/microsoft-edge.rb

34 lines
1.2 KiB
Ruby

cask "microsoft-edge" do
version "87.0.664.60"
sha256 "e509141923dc3dbe5085c9a5f4f62c5e7cfba75f2ef3cdea1838e5152ed9f3ae"
url "https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/MicrosoftEdge-#{version}.pkg",
verified: "officecdn-microsoft-com.akamaized.net/"
appcast "https://macupdater.net/cgi-bin/check_urls/check_url_redirect.cgi?url=https://go.microsoft.com/fwlink/?linkid=2069148"
name "Microsoft Edge"
desc "Multi-platform web browser"
homepage "https://www.microsoft.com/edge"
auto_updates true
depends_on cask: "microsoft-auto-update"
pkg "MicrosoftEdge-#{version}.pkg",
choices: [
{
"choiceIdentifier" => "com.microsoft.package.Microsoft_AutoUpdate.app", # Office16_all_autoupdate.pkg
"choiceAttribute" => "selected",
"attributeSetting" => 0,
},
]
uninstall pkgutil: "com.microsoft.edgemac"
zap trash: [
"~/Library/Application Support/Microsoft Edge",
"~/Library/Caches/Microsoft Edge",
"~/Library/Preferences/com.microsoft.edgemac.plist",
"~/Library/Saved Application State/com.microsoft.edgemac.savedState",
],
rmdir: "/Library/Application Support/Microsoft"
end