2015-12-18 09:15:28 +08:00
cask 'mps' do
2018-01-23 07:10:39 +08:00
version '2017.3.3,173.1677'
sha256 'f355503139d818c52bef9ebf4d08dd48b506e4d25a323d0b35912d508fba1bf7'
2015-04-06 02:25:39 +08:00
2017-05-03 03:26:26 +08:00
url " https://download.jetbrains.com/mps/ #{ version . before_comma . major_minor } /MPS- #{ version . before_comma } -macos-jdk-bundled.dmg "
2017-01-12 13:58:28 +08:00
appcast 'https://data.services.jetbrains.com/products/releases?code=MPS&latest=true&type=release' ,
2018-01-23 07:10:39 +08:00
checkpoint : '9dd9aa97a4b166a95bba0297d2bc4ce6de2dce6e2cc18e5a011e33eedfebb32c'
2015-04-06 02:25:39 +08:00
name 'JetBrains MPS'
2016-11-21 08:44:45 +08:00
homepage 'https://www.jetbrains.com/mps/'
2015-04-06 02:25:39 +08:00
2017-05-27 10:21:05 +08:00
auto_updates true
2016-05-29 12:36:33 +08:00
2016-01-07 16:38:08 +08:00
app " MPS #{ version . major_minor } .app "
2015-04-18 06:21:36 +08:00
2017-08-06 17:07:56 +08:00
uninstall_postflight do
ENV [ 'PATH' ] . split ( File :: PATH_SEPARATOR ) . map { | path | File . join ( path , 'mps' ) } . 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
2017-11-18 13:23:05 +08:00
zap trash : [
" ~/MPSSamples. #{ version . before_comma . major_minor } " ,
2017-11-18 17:35:46 +08:00
" ~/Library/Application Support/MPS #{ version . before_comma . major_minor } " ,
2017-11-18 13:23:05 +08:00
" ~/Library/Caches/MPS #{ version . before_comma . major_minor } " ,
" ~/Library/Logs/MPS #{ version . before_comma . major_minor } " ,
" ~/Library/Preferences/MPS #{ version . before_comma . major_minor } " ,
]
2015-04-06 02:25:39 +08:00
end