homebrew-cask/Casks/pycharm-ce-with-anaconda-pl...

30 lines
1.4 KiB
Ruby

cask 'pycharm-ce-with-anaconda-plugin' do
version '2020.1.4'
sha256 '703a4c0e1f12c3a75bec9318bb178b214cfba410c76b481a2058b1e1f90217a7'
url "https://download.jetbrains.com/python/pycharm-community-anaconda-#{version}.dmg"
appcast 'https://data.services.jetbrains.com/products/releases?code=PCC&latest=true&type=release'
name 'Jetbrains PyCharm Community Edition with Anaconda plugin'
name 'PyCharm CE with Anaconda plugin'
homepage 'https://www.jetbrains.com/pycharm/promo/anaconda'
auto_updates true
app 'PyCharm CE with Anaconda plugin.app'
uninstall_postflight do
ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'charm') }.each { |path| File.delete(path) if File.exist?(path) && File.readlines(path).grep(%r{# see com.intellij.idea.SocketLock for the server side of this interface}).any? }
end
zap trash: [
"~/Library/Application Support/PyCharm#{version.major_minor}",
"~/Library/Caches/PyCharmCE#{version.major_minor}",
"~/Library/Caches/PyCharm#{version.major_minor}",
"~/Library/Logs/PyCharm#{version.major_minor}",
"~/Library/Logs/PyCharmCE#{version.major_minor}",
"~/Library/Preferences/PyCharm#{version.major_minor}",
"~/Library/Preferences/PyCharmCE#{version.major_minor}",
'~/Library/Saved Application State/com.jetbrains.pycharm.savedState',
]
end