homebrew-cask/Casks/pycharm.rb

27 lines
1.0 KiB
Ruby

cask 'pycharm' do
version '2017.1.2,171.4249.47'
sha256 'f2f9e41793d4189621580e42da2476f7764d07eb9e594661196e5e6600f02d1e'
url "https://download.jetbrains.com/python/pycharm-professional-#{version.before_comma}.dmg"
appcast 'https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release',
checkpoint: '3d9f050ed0dbc5bd069c787a95aac0fb683dd293e6cff9a0d9731392f0819314'
name 'PyCharm'
homepage 'https://www.jetbrains.com/pycharm/'
auto_updates true
conflicts_with cask: 'pycharm-eap'
app 'PyCharm.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) }
end
zap delete: [
"~/Library/Preferences/PyCharm#{version.major_minor}",
"~/Library/Application Support/PyCharm#{version.major_minor}",
"~/Library/Caches/PyCharm#{version.major_minor}",
"~/Library/Logs/PyCharm#{version.major_minor}",
]
end