2016-08-19 04:05:03 +08:00
|
|
|
cask 'powershell' do
|
2017-02-16 16:11:00 +08:00
|
|
|
version '6.0.0-alpha.16'
|
|
|
|
sha256 '22426cab413f61cae310b94a684b81537eb083a873d6c164a0eb3277a3c69e1c'
|
2016-08-19 04:05:03 +08:00
|
|
|
|
|
|
|
# github.com/PowerShell/PowerShell was verified as official when first introduced to the cask
|
|
|
|
url "https://github.com/PowerShell/PowerShell/releases/download/v#{version}/powershell-#{version}.pkg"
|
|
|
|
appcast 'https://github.com/PowerShell/PowerShell/releases.atom',
|
2017-02-16 16:11:00 +08:00
|
|
|
checkpoint: '8dd555d892bbaf5e36f82e014935411d93555d182ff3cad7a18c51ae19e6a707'
|
2016-08-19 04:05:03 +08:00
|
|
|
name 'PowerShell'
|
|
|
|
homepage 'https://msdn.microsoft.com/powershell'
|
|
|
|
|
2016-11-11 02:48:08 +08:00
|
|
|
depends_on formula: 'openssl'
|
|
|
|
|
2016-08-19 04:05:03 +08:00
|
|
|
pkg "powershell-#{version}.pkg"
|
|
|
|
|
|
|
|
uninstall pkgutil: 'powershell'
|
|
|
|
|
|
|
|
zap delete: [
|
|
|
|
'~/.cache/powershell',
|
|
|
|
'~/.config/PowerShell',
|
|
|
|
'~/.local/share/powershell',
|
|
|
|
],
|
|
|
|
rmdir: [
|
|
|
|
'~/.cache',
|
|
|
|
'~/.config',
|
|
|
|
'~/.local/share',
|
|
|
|
'~/.local',
|
|
|
|
]
|
2016-11-11 02:48:08 +08:00
|
|
|
|
|
|
|
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
|
2016-08-19 04:05:03 +08:00
|
|
|
end
|