homebrew-cask/Casks/pycharm-ce.rb

32 lines
1.4 KiB
Ruby

cask 'pycharm-ce' do
version '2017.1.1,171.4163.6'
sha256 '908c192c8a03e61e96b4f71ec9fc625ba1ca38daeecc92ef19c85eb9b5e988d8'
url "https://download.jetbrains.com/python/pycharm-community-#{version.before_comma}.dmg"
appcast 'https://data.services.jetbrains.com/products/releases?code=PCC&latest=true&type=release',
checkpoint: 'f2401f8a74dd652fb2960716174e6f24160374625feb682f6ab3f3763d2808e0'
name 'Jetbrains PyCharm Community Edition'
name 'PyCharm CE'
homepage 'https://www.jetbrains.com/pycharm/'
auto_updates true
conflicts_with cask: 'pycharm-ce-eap'
app 'PyCharm CE.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/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