26 lines
1.1 KiB
Ruby
26 lines
1.1 KiB
Ruby
cask 'datagrip' do
|
|
version '2017.3.4,173.4301.31'
|
|
sha256 'f30dd470d0c676161f971c783601b1ca0ee00e288ec18f7b11ca8287b759b59d'
|
|
|
|
url "https://download.jetbrains.com/datagrip/datagrip-#{version.before_comma}.dmg"
|
|
appcast 'https://data.services.jetbrains.com/products/releases?code=DG&latest=true&type=release',
|
|
checkpoint: '443f5f51a5a4db802afc0d5a2ceaa3db7897aff65451e25ced86f0d3d549d8eb'
|
|
name 'DataGrip'
|
|
homepage 'https://www.jetbrains.com/datagrip/'
|
|
|
|
auto_updates true
|
|
|
|
app 'DataGrip.app'
|
|
|
|
uninstall_postflight do
|
|
ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'datagrip') }.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/DataGrip#{version.major_minor}",
|
|
"~/Library/Caches/DataGrip#{version.major_minor}",
|
|
"~/Library/Logs/DataGrip#{version.major_minor}",
|
|
"~/Library/Preferences/DataGrip#{version.major_minor}",
|
|
]
|
|
end
|