33 lines
1.2 KiB
Ruby
33 lines
1.2 KiB
Ruby
cask "microsoft-edge" do
|
|
version "84.0.522.61"
|
|
sha256 "16cb3a3d32d568d56189951200e1db37a8abe32c85008587b8f81820bbb47834"
|
|
|
|
# officecdn-microsoft-com.akamaized.net/ was verified as official when first introduced to the cask
|
|
url "https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/MicrosoftEdge-#{version}.pkg"
|
|
appcast "https://macupdater.net/cgi-bin/check_urls/check_url_redirect.cgi?url=https://go.microsoft.com/fwlink/?linkid=2069148"
|
|
name "Microsoft Edge"
|
|
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
|