use plist_set in 4 Casks
@ -9,6 +9,6 @@ cask :v1 => 'android-studio-canary' do
app 'Android Studio.app'
postflight do
system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/Android Studio.app/Contents/Info.plist"
plist_set(':JVMOptions:JVMVersion', '1.6+')
end
@ -9,7 +9,7 @@ cask :v1 => 'intellij-idea-ce13' do
app 'IntelliJ IDEA 13 CE.app'
system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/IntelliJ IDEA 13 CE.app/Contents/Info.plist"
zap :delete => [
@ -9,7 +9,7 @@ cask :v1 => 'intellij-idea13' do
app 'IntelliJ IDEA 13.app'
system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/IntelliJ IDEA 13.app/Contents/Info.plist"
@ -9,7 +9,7 @@ cask :v1 => 'rubymine633' do
app 'RubyMine.app'
system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/RubyMine.app/Contents/Info.plist"
"~/Library/Application Support/RubyMine#{version.gsub('.','')}",