2015-12-18 09:15:28 +08:00
cask 'clion' do
2017-12-01 05:08:24 +08:00
version '2017.3,173.3727.114'
sha256 '244532d50856f5fd3dd1785b18f6db4be9f0279346bcc2d58a4f40878fdbd80c'
2015-04-15 04:56:35 +08:00
2017-03-28 20:20:18 +08:00
url " https://download.jetbrains.com/cpp/CLion- #{ version . before_comma } .dmg "
2017-01-11 14:23:03 +08:00
appcast 'https://data.services.jetbrains.com/products/releases?code=CL&latest=true&type=release' ,
2017-12-01 05:08:24 +08:00
checkpoint : '47e7d97336fdfbaeac8754419ad9b2b6e7043b8994f067b97ccfedc0fe917a34'
2015-04-15 04:56:35 +08:00
name 'CLion'
2016-11-21 08:44:45 +08:00
homepage 'https://www.jetbrains.com/clion/'
2015-04-15 04:56:35 +08:00
2017-02-04 13:24:19 +08:00
auto_updates true
2016-05-29 12:36:56 +08:00
2015-04-15 04:56:35 +08:00
app 'CLion.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 , 'clion' ) } . 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-11-18 13:23:05 +08:00
zap trash : [
2017-11-18 17:35:46 +08:00
" ~/Library/Application Support/CLion #{ version . major_minor } " ,
2017-11-18 13:23:05 +08:00
" ~/Library/Caches/CLion #{ version . major_minor } " ,
" ~/Library/Logs/CLion #{ version . major_minor } " ,
" ~/Library/Preferences/CLion #{ version . major_minor } " ,
]
2015-04-15 04:56:35 +08:00
end