25 lines
929 B
Ruby
25 lines
929 B
Ruby
cask 'dotnet' do
|
|
version '2.2.6,7fd8704c-560f-47dc-8fe0-b777e5e743e7:d7a4476f50828bf4095455b49c02cc01'
|
|
sha256 'ae58557457f2876e639cf166362456e76b17939f065784c146a0a459b1cfb389'
|
|
|
|
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
|