2015-12-18 09:15:28 +08:00
cask 'mps' do
2017-09-16 01:20:03 +08:00
version '2017.2.2,172.1347'
sha256 'dea35f802a5d2d58d5e5093e8383812276abad9c913b14b919784a45e1aed0b7'
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-09-16 01:20:03 +08:00
checkpoint : '22c619c16c9c632d5b7172f28cd6f5cf78e0d5dcb63c0881b23dd3dbe4e78a30'
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
2016-01-18 09:27:20 +08:00
zap delete : [
2017-05-03 03:26:26 +08:00
" ~/MPSSamples. #{ version . before_comma . major_minor } " ,
" ~/Library/Caches/MPS #{ version . before_comma . major_minor } " ,
" ~/Library/Logs/MPS #{ version . before_comma . major_minor } " ,
2017-08-06 17:07:56 +08:00
] ,
trash : [
" ~/Library/Application Support/MPS #{ version . before_comma . major_minor } " ,
" ~/Library/Preferences/MPS #{ version . before_comma . major_minor } " ,
2016-01-18 09:27:20 +08:00
]
2015-04-06 02:25:39 +08:00
end