homebrew-cask/Casks/intellij-idea.rb

28 lines
1.2 KiB
Ruby

cask 'intellij-idea' do
version '2017.1.2,171.4249.39'
sha256 '41134417286662bd28f5b285b956adce9e3ff6cc2bc17a0b696f5c7f049fa190'
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: 'e8ec9aca4e55ec1893ccb28337c74d33c5cd71af712d4cb30554c5c9f3cb8705'
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) }
end
zap delete: [
"~/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/Preferences/com.jetbrains.intellij.plist',
'~/Library/Saved Application State/com.jetbrains.intellij.savedState',
]
end