homebrew-cask/Casks/rider.rb

28 lines
1.3 KiB
Ruby
Raw Normal View History

2017-05-26 23:55:00 +08:00
cask 'rider' do
version '2017.2.1,172.4144.1873'
sha256 '1aab149520a3b5db603f6b1adf258d2cc26068b3c55dc2fffa3ab03d20d0261d'
2017-05-26 23:55:00 +08:00
url "https://download.jetbrains.com/resharper/JetBrains.Rider-#{version.before_comma}.dmg"
appcast 'https://data.services.jetbrains.com/products/releases?code=RD&latest=true&type=release',
checkpoint: '6e2a653eebf973cdd18953e66547b0259dd96fa03189cddca8c5a68d127e0db5'
2017-05-26 23:55:00 +08:00
name 'Jetbrains Rider'
homepage 'https://www.jetbrains.com/rider/'
auto_updates true
app "Rider #{version.before_comma}.app"
2017-05-26 23:55:00 +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
zap trash: [
2017-11-18 17:35:46 +08:00
"~/Library/Application Support/Rider#{version.major_minor}",
"~/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-05-26 23:55:00 +08:00
end