homebrew-cask/Casks/microsoft-edge.rb

38 lines
1.2 KiB
Ruby

cask "microsoft-edge" do
version "87.0.664.75"
sha256 "a4929b986cdd2daa73389b41a9088888a160075170c04b090c70e7ca5156c863"
url "https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/MicrosoftEdge-#{version}.pkg",
verified: "officecdn-microsoft-com.akamaized.net/"
name "Microsoft Edge"
desc "Multi-platform web browser"
homepage "https://www.microsoft.com/edge"
livecheck do
url "https://go.microsoft.com/fwlink/?linkid=2069148"
strategy :header_match
end
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