38 lines
1.2 KiB
Ruby
38 lines
1.2 KiB
Ruby
cask 'powershell' do
|
|
version '6.0.1'
|
|
sha256 'cabed843a513666a658702a5e96deeb6d02d895410ddcb81da3481bde8ca2093'
|
|
|
|
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: '91832eeb758cfd5d68a18a5b8d1284ae135dea6c6ac45460fe3c290f2987d363'
|
|
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
|