19 lines
580 B
Ruby
19 lines
580 B
Ruby
cask 'dotnet' do
|
|
version '2.1.4'
|
|
sha256 '1d2c1c86dbb246fbf15d98a9b2907d3440a51f00c51f5f6aaa652f98920e19a0'
|
|
|
|
url "https://download.microsoft.com/download/A/7/8/A78F1D25-8D5C-4411-B544-C7D527296D5E/dotnet-runtime-#{version}-osx-x64.pkg"
|
|
appcast 'https://www.microsoft.com/net/download/macos'
|
|
name '.Net Core Runtime'
|
|
homepage 'https://www.microsoft.com/net/core#macos'
|
|
|
|
depends_on macos: '>= :sierra'
|
|
|
|
pkg "dotnet-runtime-#{version}-osx-x64.pkg"
|
|
|
|
uninstall pkgutil: 'com.microsoft.dotnet.*',
|
|
delete: '/etc/paths.d/dotnet'
|
|
|
|
zap trash: '~/.nuget'
|
|
end
|