Last active
April 6, 2020 04:09
-
-
Save mracos/36d26b7dd826ea658db459b53c1ec364 to your computer and use it in GitHub Desktop.
DEPRECATED (https://github.com/mracos/homebrew-personal) - Homebrew cask recipe for IntelliJ Idea @ version 2019.1.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cask 'intellij-idea' do | |
version '2019.1.4' | |
sha256 '600b0446ae02fee208caf4e0423b984a3c853ef289fcd10b6b0e7081e1559d53' | |
url "https://download.jetbrains.com/idea/ideaIU-#{version}.dmg" | |
appcast 'https://data.services.jetbrains.com/products/releases?code=IIU&latest=true&type=release' | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment