homebrew-cask/Casks/powershell.rb

29 lines
830 B
Ruby

cask 'powershell' do
version '6.1.3'
sha256 'f7a30b0e163df70e5d8a3edcdc9b3ff81d093070ae2041e50004b473d3db4ebd'
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