homebrew-cask/Casks/powershell.rb

22 lines
657 B
Ruby

cask 'powershell' do
version '7.0.0'
sha256 '80f75903e9f33b407a7f15c087a2c2b12a93dc153469e091d18048d01080085e'
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 macos: '>= :high_sierra'
pkg "powershell-#{version}-osx-x64.pkg"
uninstall pkgutil: 'com.microsoft.powershell'
zap trash: [
'~/.cache/powershell',
'~/.config/PowerShell',
'~/.local/share/powershell',
]
end