25 lines
929 B
Ruby
25 lines
929 B
Ruby
cask 'dotnet' do
|
|
version '3.1.0,861a1498-68dd-4b8d-8400-4636d6375074:f7fe3a98e33d6a93f35b64d399b346f9'
|
|
sha256 'f03663eae170bd6e5b5c3a3f3075c3af855514547d34473850ca145b0ec94967'
|
|
|
|
url "https://download.visualstudio.microsoft.com/download/pr/#{version.after_comma.before_colon}/#{version.after_colon}/dotnet-runtime-#{version.before_comma}-osx-x64.pkg"
|
|
appcast 'https://www.microsoft.com/net/download/macos'
|
|
name '.Net Core Runtime'
|
|
homepage 'https://www.microsoft.com/net/core#macos'
|
|
|
|
conflicts_with cask: [
|
|
'dotnet-sdk',
|
|
'dotnet-preview',
|
|
'dotnet-sdk-preview',
|
|
]
|
|
depends_on macos: '>= :sierra'
|
|
|
|
pkg "dotnet-runtime-#{version.before_comma}-osx-x64.pkg"
|
|
binary '/usr/local/share/dotnet/dotnet'
|
|
|
|
uninstall pkgutil: 'com.microsoft.dotnet.*',
|
|
delete: '/etc/paths.d/dotnet'
|
|
|
|
zap trash: '~/.nuget'
|
|
end
|