Skip to content

Commit

Permalink
Add dotnet-sdk8-0-100 (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
basilfx authored Nov 15, 2023
1 parent fda7fd5 commit 8e6ce38
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
47 changes: 47 additions & 0 deletions Casks/dotnet-sdk8-0-100.rb
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dotnet --list-sdks

| Version | .NET SDK | Arch | Remarks |
| ------------------- | -------- | ----------- | ---------------------------------------- |
| `dotnet-sdk8-0-100` | 8.0.100 | x64 & arm64 | |
| `dotnet-sdk7-0-400` | 7.0.403 | x64 & arm64 | |
| `dotnet-sdk7-0-300` | 7.0.306 | x64 & arm64 | |
| `dotnet-sdk7-0-200` | 7.0.203 | x64 & arm64 | |
Expand Down

0 comments on commit 8e6ce38

Please sign in to comment.