homebrew-cask/Casks/rider.rb

28 lines
1.3 KiB
Ruby

cask 'rider' do
version '2017.3.1,173.3994.2442'
sha256 'a5dcfcf0f5f6360019f931fb5020d0799136c10431fad61ce960b809ff3d0a33'
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: '93cf65b4293cbc0d70a6cd02169c6b3d580e00d18c8b86339e2f58e0b904aee0'
name 'Jetbrains Rider'
homepage 'https://www.jetbrains.com/rider/'
auto_updates true
app "Rider #{version.before_comma}.app"
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
zap trash: [
"~/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',
'~/Library/Saved Application State/com.jetbrains.rider.savedState',
]
end