Browse Source

Update java7 to 1.7.0_60

master
Faun 11 years ago
parent
commit
93087801a9
  1. 10
      Casks/java7.rb

10
Casks/java7.rb

@ -1,12 +1,12 @@
class Java7 < Cask class Java7 < Cask
url 'http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-macosx-x64.dmg', url 'http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-macosx-x64.dmg',
:cookies => { :cookies => {
'oraclelicense' => 'accept-securebackup-cookie' 'oraclelicense' => 'accept-securebackup-cookie'
} }
homepage 'http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html' homepage 'http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html'
version '1.7.0_55' version '1.7.0_60'
sha256 '0ec909208a75ec8c49b5eccf4c5b6314ef68a8131653c5097aba3e4f9199e03c' sha256 'a868aab818cd114f652252ded5b159b5c47beb1a0a074cdb0e475ed79826c9df'
install 'JDK 7 Update 55.pkg' install 'JDK 7 Update 60.pkg'
after_install do after_install do
system '/usr/bin/sudo', '-E', '--', system '/usr/bin/sudo', '-E', '--',
'/usr/libexec/PlistBuddy', '-c', 'Add :JavaVM:JVMCapabilities: string BundledApp', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Info.plist" '/usr/libexec/PlistBuddy', '-c', 'Add :JavaVM:JVMCapabilities: string BundledApp', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Info.plist"
@ -21,7 +21,7 @@ class Java7 < Cask
system '/usr/bin/sudo', '-E', '--', system '/usr/bin/sudo', '-E', '--',
'/bin/ln', '-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents", '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK' '/bin/ln', '-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents", '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'
end end
uninstall :pkgutil => 'com.oracle.jdk7u55', uninstall :pkgutil => 'com.oracle.jdk7u60',
:files => '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK' :files => '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'
caveats <<-EOS.undent caveats <<-EOS.undent
This Cask makes minor modifications to the JRE to prevent any packaged This Cask makes minor modifications to the JRE to prevent any packaged

Loading…
Cancel
Save