37 lines
1.2 KiB
Ruby
37 lines
1.2 KiB
Ruby
cask 'powershell' do
|
|
version '6.0.0-alpha.14'
|
|
sha256 '8fd7abc4ec1a2e4a28543b90a6ee60cd437d4b366b544c39b341a05276eb8ccf'
|
|
|
|
# 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',
|
|
checkpoint: 'ef21df624051f199d998ba7658b38e23c6437944b129fe94680aac36b52cad92'
|
|
name 'PowerShell'
|
|
homepage 'https://msdn.microsoft.com/powershell'
|
|
|
|
depends_on formula: 'openssl'
|
|
|
|
pkg "powershell-#{version}.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
|