homebrew-cask-versions/Casks/powershell6.rb

32 lines
798 B
Ruby

cask "powershell6" do
version "6.2.7"
sha256 "d968da998b00178f666f342c9823c7df5038947a46d153892b1b20580be8d6d4"
url "https://github.com/PowerShell/PowerShell/releases/download/v#{version}/powershell-#{version}-osx-x64.pkg"
name "PowerShell"
desc "Command-line shell and scripting language"
homepage "https://github.com/PowerShell/PowerShell"
conflicts_with cask: "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",
],
rmdir: [
"~/.cache",
"~/.config",
"~/.local/share",
"~/.local",
]
caveats do
discontinued
end
end