homebrew-cask/Casks/powershell.rb

38 lines
1.2 KiB
Ruby

cask 'powershell' do
version '6.0.2'
sha256 'c757808305076570cc0945feab8433a3488500a3558dea4dd4bb8e5a770dea99'
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: 'f9f11569508e46985e8ea51671f7d0966103c181f47372b02ebe29922dbdd508'
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: 'com.microsoft.powershell'
zap trash: [
'~/.cache/powershell',
'~/.config/PowerShell',
'~/.local/share/powershell',
],
rmdir: [
'~/.cache',
'~/.config',
'~/.local/share',
'~/.local',
]
caveats <<~EOS
A OpenSSL-backed libcurl with GSSAPI is required for custom handling
of certificates and default credentials for web requests.
This is rarely needed, but you can install it with
brew install curl --with-openssl --with-gssapi
See https://github.com/PowerShell/PowerShell/issues/5638
EOS
end