cask 'powershell' do version '6.0.0-beta.5' sha256 '4a0c2b7e81a9530f9d913e35f287112ad0e12083daf196a769efcf89ca150bfb' url "https://github.com/PowerShell/PowerShell/releases/download/v#{version}/powershell-#{version}-osx.10.12-x64.pkg" appcast 'https://github.com/PowerShell/PowerShell/releases.atom', checkpoint: '6de7df754d8cc7c1c1231fe6afb3294b5de6b533fe883cf7629e953b690662b7' name 'PowerShell' homepage 'https://github.com/PowerShell/PowerShell' depends_on formula: 'openssl' depends_on macos: '>= :sierra' pkg "powershell-#{version}-osx.10.12-x64.pkg" uninstall pkgutil: 'powershell' zap delete: [ '~/.cache/powershell', '~/.config/PowerShell', '~/.local/share/powershell', ], rmdir: [ '~/.cache', '~/.config', '~/.local/share', '~/.local', ] caveats <<-EOS.undent A OpenSSL-backed libcurl is required for custom handling of certificates. This is rarely needed, but you can install it with brew install curl --with-openssl See https://github.com/PowerShell/PowerShell/issues/2211 EOS end