homebrew-cask/Casks/powershell.rb

29 lines
830 B
Ruby

cask 'powershell' do
version '6.1.1'
sha256 'bcaa357fb472b688ecd3fc3472d360c1eb58e43afe9b083d7c8c76c36fded4b9'
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