28 lines
1.1 KiB
Ruby
28 lines
1.1 KiB
Ruby
cask 'datagrip' do
|
|
version '2017.2.2,172.4155.28'
|
|
sha256 '597f80785de101729b5a67f2029f3f59a2427d6f765615b0abf434217e6f8334'
|
|
|
|
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: '8eceb992516f66ed88d665004bf3a8f0ee450db992ff1c5d768713fc192e3768'
|
|
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 delete: [
|
|
"~/Library/Caches/DataGrip#{version.major_minor}",
|
|
"~/Library/Logs/DataGrip#{version.major_minor}",
|
|
],
|
|
trash: [
|
|
"~/Library/Preferences/DataGrip#{version.major_minor}",
|
|
"~/Library/Application Support/DataGrip#{version.major_minor}",
|
|
]
|
|
end
|