homebrew-cask/Casks/powershell.rb

37 lines
1.2 KiB
Ruby

cask 'powershell' do
version '6.0.0-beta.7'
sha256 '6aaec8ccf6b910d389036cb68c9cb5bb462f231a37b5d3624f52d8899ad5dbab'
url "https://github.com/PowerShell/PowerShell/releases/download/v#{version}/powershell-#{version}-osx.10.12-x64.pkg"
appcast 'https://github.com/PowerShell/PowerShell/releases.atom',
checkpoint: '3aafba4d09c554e0502144ff649254221019364623b14bb84ea80ca13d4484c3'
name 'PowerShell'
homepage 'https://github.com/PowerShell/PowerShell'
depends_on formula: 'openssl'
depends_on macos: '>= :sierra'
pkg "powershell-#{version}-osx.10.12-x64.pkg"
uninstall pkgutil: 'powershell'
zap delete: [
'~/.cache/powershell',
'~/.config/PowerShell',
'~/.local/share/powershell',
],
rmdir: [
'~/.cache',
'~/.config',
'~/.local/share',
'~/.local',
]
caveats <<-EOS.undent
A OpenSSL-backed libcurl is required for custom handling of certificates.
This is rarely needed, but you can install it with
brew install curl --with-openssl
See https://github.com/PowerShell/PowerShell/issues/2211
EOS
end