2015-12-18 09:15:28 +08:00
cask 'mps' do
2017-11-23 23:53:39 +08:00
version '2017.2.3,172.1493'
sha256 '2640499fceeef83fce5bdbdf799a7ea1eb468f8fd4ca340263a7f8ba91956bd3'
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' ,
2017-11-23 23:53:39 +08:00
checkpoint : '032a1525d2134de464aad5c498b3a67c70b54ac45d4f50597572280b91706e8f'
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