2017-01-29 22:12:03 +08:00
cask 'pycharm-edu' do
2017-10-04 04:16:30 +08:00
version '4.0.2,172.4539'
sha256 '05e513ca542279a0ce00c68234bfa8aeaa938b99367f37d7a58699df401d9b01'
2017-01-29 22:12:03 +08:00
2017-03-28 20:20:18 +08:00
url " https://download.jetbrains.com/python/pycharm-edu- #{ version . before_comma } .dmg "
2017-01-30 20:11:09 +08:00
appcast 'https://data.services.jetbrains.com/products/releases?code=PCE&latest=true&type=release' ,
2017-10-04 04:16:30 +08:00
checkpoint : '661300b3302ed8bcca9a58b3e839b2318a58ed6e199387b998b48678b0c00278'
2017-01-29 22:12:03 +08:00
name 'Jetbrains PyCharm Educational Edition'
name 'PyCharm Edu'
homepage 'https://www.jetbrains.com/pycharm-edu/'
2017-02-04 13:24:19 +08:00
auto_updates true
2017-01-29 22:12:03 +08:00
app 'PyCharm Edu.app'
2017-04-05 07:10:29 +08:00
uninstall_postflight do
2017-08-06 17:07:56 +08:00
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? }
2017-04-05 07:10:29 +08:00
end
2017-01-29 22:12:03 +08:00
zap delete : [
" ~/Library/Caches/PyCharmEdu #{ version . major_minor . no_dots } " ,
" ~/Library/Logs/PyCharmEdu #{ version . major_minor . no_dots } " ,
2017-08-06 17:07:56 +08:00
] ,
trash : [
" ~/Library/Application Support/PyCharmEdu #{ version . major_minor . no_dots } " ,
" ~/Library/Preferences/PyCharmEdu #{ version . major_minor . no_dots } " ,
2017-01-29 22:12:03 +08:00
]
end