27 lines
1.1 KiB
Ruby
27 lines
1.1 KiB
Ruby
cask 'pycharm-edu' do
|
|
version '2017.3,173.4145'
|
|
sha256 '518422191432d444c31c68355fc71de664387419d8dd4626225c3fc01a45f8d3'
|
|
|
|
url "https://download.jetbrains.com/python/pycharm-edu-#{version.before_comma}.dmg"
|
|
appcast 'https://data.services.jetbrains.com/products/releases?code=PCE&latest=true&type=release',
|
|
checkpoint: 'bea13c9101f7b581a76e28bab4065b779ced40d2e68700ed110f0fa01a445ac7'
|
|
name 'Jetbrains PyCharm Educational Edition'
|
|
name 'PyCharm Edu'
|
|
homepage 'https://www.jetbrains.com/pycharm-edu/'
|
|
|
|
auto_updates true
|
|
|
|
app 'PyCharm Edu.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/PyCharmEdu#{version.major_minor}",
|
|
"~/Library/Caches/PyCharmEdu#{version.major_minor}",
|
|
"~/Library/Logs/PyCharmEdu#{version.major_minor}",
|
|
"~/Library/Preferences/PyCharmEdu#{version.major_minor}",
|
|
]
|
|
end
|