-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 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,47 @@ | ||
cask "dotnet-sdk8-0-100" do | ||
arch arm: "arm64", intel: "x64" | ||
|
||
version "8.0.100,8.0.0" | ||
|
||
sha256_x64 = "67c3437cd5910e8ac1b0cc93e6d999ff237fe85b57f3e08753920a1a6ab30fde" | ||
sha256_arm64 = "6cd607a4efd4565667249b98c7da2fb3f8281cd855ba7ca2de9183210395bda1" | ||
url_x64 = "https://download.visualstudio.microsoft.com/download/pr/27a7ece8-f6cd-4cab-89cf-987e85ae6805/2c9ab2cb294143b0533f005640c393da/dotnet-sdk-#{version.csv.first}-osx-x64.pkg" | ||
url_arm64 = "https://download.visualstudio.microsoft.com/download/pr/cf196f2f-f1e2-4f9a-a7ac-546242c431e2/8c386932f4a2f96c3e95c433e4899ec2/dotnet-sdk-#{version.csv.first}-osx-arm64.pkg" | ||
|
||
on_arm do | ||
sha256 sha256_arm64 | ||
|
||
url url_arm64 | ||
end | ||
on_intel do | ||
sha256 sha256_x64 | ||
|
||
url url_x64 | ||
end | ||
|
||
name ".NET Core SDK #{version.csv.first}" | ||
desc "This cask follows releases from https://github.com/dotnet/core/tree/master" | ||
homepage "https://www.microsoft.com/net/core#macos" | ||
|
||
livecheck do | ||
skip "See https://github.com/isen-ng/homebrew-dotnet-sdk-versions/blob/master/CONTRIBUTING.md#automatic-updates" | ||
end | ||
|
||
depends_on macos: ">= :catalina" | ||
|
||
pkg "dotnet-sdk-#{version.csv.first}-osx-#{arch}.pkg" | ||
|
||
uninstall pkgutil: "com.microsoft.dotnet.dev.#{version.csv.first}.component.osx.#{arch}" | ||
|
||
zap trash: ["~/.dotnet", "~/.nuget", "/etc/paths.d/dotnet", "/etc/paths.d/dotnet-cli-tools"], | ||
pkgutil: [ | ||
"com.microsoft.dotnet.hostfxr.#{version.csv.second}.component.osx.#{arch}", | ||
"com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.#{version.csv.second}.component.osx.#{arch}", | ||
"com.microsoft.dotnet.pack.apphost.#{version.csv.second}.component.osx.#{arch}", | ||
"com.microsoft.dotnet.sharedhost.component.osx.#{arch}", | ||
] | ||
|
||
caveats "Uninstalling the offical dotnet-sdk casks will remove the shared runtime dependencies, " \ | ||
"so you'll need to reinstall the particular version cask you want from this tap again " \ | ||
"for the `dotnet` command to work again." | ||
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