homebrew-cask/Casks/pycharm.rb

27 lines
1.0 KiB
Ruby

cask 'pycharm' do
version '2017.1.1,171.4163.6'
sha256 '5056d7d2fc0148f02909302e07e37b44e09f186a19f806e26cca0f5b3912652a'
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: 'bb9679dbc3a7a9d25a9691e1ffb03531ca63bf26a8167bdc2dd5247fc61c5332'
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