29 lines
830 B
Ruby
29 lines
830 B
Ruby
cask 'powershell' do
|
|
version '6.2.2'
|
|
sha256 '1d4e6b21bb5fce90f3d3b90640a978a90f2860672483fe2bc7c249f2e9ae58cd'
|
|
|
|
url "https://github.com/PowerShell/PowerShell/releases/download/v#{version}/powershell-#{version}-osx-x64.pkg"
|
|
appcast 'https://github.com/PowerShell/PowerShell/releases.atom'
|
|
name 'PowerShell'
|
|
homepage 'https://github.com/PowerShell/PowerShell'
|
|
|
|
depends_on formula: 'openssl'
|
|
depends_on macos: '>= :sierra'
|
|
|
|
pkg "powershell-#{version}-osx-x64.pkg"
|
|
|
|
uninstall pkgutil: 'com.microsoft.powershell'
|
|
|
|
zap trash: [
|
|
'~/.cache/powershell',
|
|
'~/.config/PowerShell',
|
|
'~/.local/share/powershell',
|
|
],
|
|
rmdir: [
|
|
'~/.cache',
|
|
'~/.config',
|
|
'~/.local/share',
|
|
'~/.local',
|
|
]
|
|
end
|