22 lines
613 B
Ruby
22 lines
613 B
Ruby
cask "powershell" do
|
|
version "7.0.3"
|
|
sha256 "2c7702956f11b037cf75bf78372a9b0cb34d102031c0a293342de21c741800ed"
|
|
|
|
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
|