-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
microsoft-edge@*: migrate from
homebrew/cask-versions
Signed-off-by: Michael Cho <[email protected]>
- Loading branch information
Showing
2 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
cask "microsoft-edge@beta" do | ||
linkid = on_arch_conditional arm: "2099618", intel: "2069439" | ||
|
||
on_arm do | ||
version "124.0.2478.67,9dd7d673-e9a5-4fc7-82de-2a2e38333d35" | ||
sha256 "df8b825f3b4adcbaaaf7e3745f9f3235018c4eac8bf329916e88700f5ffd5dcf" | ||
end | ||
on_intel do | ||
version "124.0.2478.67,fa2b3d5b-6fed-4473-8bce-34f5b1cd5688" | ||
sha256 "a2279f46cde1ed36f3c4128c41e2843a9bb0258748ede7ad8b82fd8da4e14fc6" | ||
end | ||
|
||
url "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/#{version.csv.second}/MicrosoftEdgeBeta-#{version.csv.first}.pkg" | ||
name "Microsoft Edge Beta" | ||
desc "Multi-platform web browser" | ||
homepage "https://www.microsoft.com/en-us/edge/download/insider?form=" | ||
|
||
livecheck do | ||
url "https://go.microsoft.com/fwlink/?linkid=#{linkid}" | ||
regex(%r{/([^/]+)/MicrosoftEdgeBeta[._-]v?(\d+(?:\.\d+)+)\.pkg}i) | ||
strategy :header_match do |headers, regex| | ||
headers["location"].scan(regex).map { |match| "#{match[1]},#{match[0]}" } | ||
end | ||
end | ||
|
||
auto_updates true | ||
|
||
pkg "MicrosoftEdgeBeta-#{version.csv.first}.pkg", | ||
choices: [ | ||
{ | ||
"choiceIdentifier" => "com.microsoft.package.Microsoft_AutoUpdate.app", # Office16_all_autoupdate.pkg | ||
"choiceAttribute" => "selected", | ||
"attributeSetting" => 0, | ||
}, | ||
] | ||
|
||
uninstall launchctl: [ | ||
"com.microsoft.EdgeUpdater.update-internal.109.0.1518.89.system", | ||
"com.microsoft.EdgeUpdater.update.system", | ||
"com.microsoft.EdgeUpdater.wake.109.0.1518.89.system", | ||
"com.microsoft.EdgeUpdater.wake.system", | ||
], | ||
pkgutil: "com.microsoft.edgemac.Beta" | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/Microsoft Edge Beta", | ||
"~/Library/Caches/Microsoft Edge Beta", | ||
"~/Library/Preferences/com.microsoft.edgemac.Beta.plist", | ||
"~/Library/Saved Application State/com.microsoft.edgemac.Beta.savedState", | ||
] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
cask "microsoft-edge@dev" do | ||
linkid = on_arch_conditional arm: "2099619", intel: "2069340" | ||
|
||
on_arm do | ||
version "125.0.2535.6,dee68e88-1ed2-4f37-9d5c-b1ed6474272a" | ||
sha256 "91c2d7e743279ead53ae7578e75cc1a82ea5865503ec066b5f5389858d69fe13" | ||
end | ||
on_intel do | ||
version "125.0.2535.6,bb064c6f-3b92-4f58-ad52-58831e23bcd2" | ||
sha256 "03d776505b33a5b2b669772008a363b4f08497e651bd30c4da73c7206f2bc30b" | ||
end | ||
|
||
url "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/#{version.csv.second}/MicrosoftEdgeDev-#{version.csv.first}.pkg" | ||
name "Microsoft Edge Dev" | ||
desc "Multi-platform web browser" | ||
homepage "https://www.microsoft.com/en-us/edge/download/insider?form=" | ||
|
||
livecheck do | ||
url "https://go.microsoft.com/fwlink/?linkid=#{linkid}" | ||
regex(%r{/([^/]+)/MicrosoftEdgeDev[._-]v?(\d+(?:\.\d+)+)\.pkg}i) | ||
strategy :header_match do |headers, regex| | ||
headers["location"].scan(regex).map { |match| "#{match[1]},#{match[0]}" } | ||
end | ||
end | ||
|
||
auto_updates true | ||
|
||
pkg "MicrosoftEdgeDev-#{version.csv.first}.pkg", | ||
choices: [ | ||
{ | ||
"choiceIdentifier" => "com.microsoft.package.Microsoft_AutoUpdate.app", # Office16_all_autoupdate.pkg | ||
"choiceAttribute" => "selected", | ||
"attributeSetting" => 0, | ||
}, | ||
] | ||
|
||
uninstall launchctl: [ | ||
"com.microsoft.EdgeUpdater.update-internal.109.0.1518.89.system", | ||
"com.microsoft.EdgeUpdater.update.system", | ||
"com.microsoft.EdgeUpdater.wake.109.0.1518.89.system", | ||
"com.microsoft.EdgeUpdater.wake.system", | ||
], | ||
pkgutil: "com.microsoft.edgemac.Dev" | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/Microsoft Edge Dev", | ||
"~/Library/Caches/Microsoft Edge Dev", | ||
"~/Library/Preferences/com.microsoft.edgemac.Dev.plist", | ||
"~/Library/Saved Application State/com.microsoft.edgemac.Dev.savedState", | ||
] | ||
end |