28 lines
1.3 KiB
Ruby
28 lines
1.3 KiB
Ruby
cask 'intellij-idea' do
|
|
version '2017.3.4,173.4548.28'
|
|
sha256 '751eb0c8f894aed606b30641d9488b0731c2040b04416e32ec63db7883962311'
|
|
|
|
url "https://download.jetbrains.com/idea/ideaIU-#{version.before_comma}.dmg"
|
|
appcast 'https://data.services.jetbrains.com/products/releases?code=IIU&latest=true&type=release',
|
|
checkpoint: '7c10f49bf922be53b9819c9278405940ec63dcee9dd48586887437078cb97406'
|
|
name 'IntelliJ IDEA Ultimate'
|
|
homepage 'https://www.jetbrains.com/idea/'
|
|
|
|
auto_updates true
|
|
|
|
app 'IntelliJ IDEA.app'
|
|
|
|
uninstall_postflight do
|
|
ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'idea') }.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/Preferences/com.jetbrains.intellij.plist',
|
|
"~/Library/Caches/IntelliJIdea#{version.major_minor}",
|
|
"~/Library/Logs/IntelliJIdea#{version.major_minor}",
|
|
"~/Library/Application Support/IntelliJIdea#{version.major_minor}",
|
|
"~/Library/Preferences/IntelliJIdea#{version.major_minor}",
|
|
'~/Library/Saved Application State/com.jetbrains.intellij.savedState',
|
|
]
|
|
end
|