2017-05-26 23:55:00 +08:00
cask 'rider' do
2018-06-01 17:38:04 +08:00
version '2018.1.2,181.4952.297'
sha256 '41e4e5687648a1f581ff304b0e64a73596fd7c534fb9222408fa7b3ccca974b3'
2017-05-26 23:55:00 +08:00
2018-04-22 06:07:35 +08:00
url " https://download.jetbrains.com/rider/JetBrains.Rider- #{ version . before_comma } .dmg "
2018-06-12 22:37:26 +08:00
appcast 'https://data.services.jetbrains.com/products/releases?code=RD&latest=true&type=release'
2017-05-26 23:55:00 +08:00
name 'Jetbrains Rider'
homepage 'https://www.jetbrains.com/rider/'
auto_updates true
2017-08-23 05:47:50 +08:00
app " Rider #{ version . before_comma } .app "
2017-05-26 23:55:00 +08:00
2017-08-06 17:07:56 +08:00
uninstall_postflight do
ENV [ 'PATH' ] . split ( File :: PATH_SEPARATOR ) . map { | path | File . join ( path , 'rider' ) } . 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-05-26 23:55:00 +08:00
2017-11-18 13:23:05 +08:00
zap trash : [
2017-11-18 17:35:46 +08:00
" ~/Library/Application Support/Rider #{ version . major_minor } " ,
2017-11-18 13:23:05 +08:00
" ~/Library/Caches/Rider #{ version . major_minor } " ,
" ~/Library/Logs/Rider #{ version . major_minor } " ,
" ~/Library/Preferences/Rider #{ version . major_minor } " ,
'~/Library/Preferences/jetbrains.rider.71e559ef.plist' ,
2017-11-18 17:35:46 +08:00
'~/Library/Saved Application State/com.jetbrains.rider.savedState' ,
2017-11-18 13:23:05 +08:00
]
2017-05-26 23:55:00 +08:00
end