homebrew-cask/Casks/intellij-idea-ce.rb

31 lines
973 B
Ruby
Raw Normal View History

class IntellijIdeaCe < Cask
2014-10-03 00:20:15 +08:00
version '13.1.5'
sha256 '1db4938b41de9e340e196bd76f0482f9a329d0a660a9c583fb502c3208731c81'
2014-08-13 15:51:37 +08:00
url "http://download.jetbrains.com/idea/ideaIC-#{version}.dmg"
homepage 'https://www.jetbrains.com/idea/index.html'
2014-10-01 23:33:07 +08:00
license :oss
2014-09-16 00:05:45 +08:00
app 'IntelliJ IDEA 13 CE.app'
postflight do
2014-10-04 21:56:16 +08:00
system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{destination_path}/IntelliJ IDEA 13 CE.app/Contents/Info.plist"
end
2014-10-22 18:16:41 +08:00
zap :delete => [
'~/Library/Application Support/IntelliJIdea13',
'~/Library/Preferences/IntelliJIdea13',
]
2014-10-04 21:56:16 +08:00
caveats <<-EOS.undent
#{title} may require Java 7 (an older version), available from the
2014-10-04 21:56:16 +08:00
caskroom-versions repository via
2014-10-04 21:56:16 +08:00
brew cask install caskroom/versions/java7
Alternatively, #{title} can be modified to use Java 8 as described in
2014-10-04 21:56:16 +08:00
https://github.com/caskroom/homebrew-cask/issues/4500#issuecomment-43955932
EOS
end