Browse Source

java8, zulu Casks: remove <= mavericks conditionals (#4913)

* java8: remove <= mavericks conditionals

* zulu7: remove <= mavericks conditionals

* zulu8: remove <= mavericks conditionals
master
commitay 7 years ago
committed by GitHub
parent
commit
a98da98a7e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      Casks/java8.rb
  2. 20
      Casks/zulu7.rb
  3. 20
      Casks/zulu8.rb

17
Casks/java8.rb

@ -34,15 +34,6 @@ cask 'java8' do
system_command '/bin/ln',
args: ['-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version.split('-')[0]}.jdk/Contents/Home/jre/lib/server/libjvm.dylib", "/Library/Java/JavaVirtualMachines/jdk#{version.split('-')[0]}.jdk/Contents/Home/bundle/Libraries/libserver.dylib"],
sudo: true
if MacOS.version <= :mavericks
system_command '/bin/rm',
args: ['-rf', '--', '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'],
sudo: true
system_command '/bin/ln',
args: ['-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version.split('-')[0]}.jdk/Contents", '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'],
sudo: true
end
end
uninstall pkgutil: [
@ -62,13 +53,7 @@ cask 'java8' do
"/Library/Java/JavaVirtualMachines/jdk#{version.split('-')[0]}.jdk/Contents",
'/Library/PreferencePanes/JavaControlPanel.prefPane',
'/Library/Java/Home',
if MacOS.version <= :mavericks
[
'/usr/lib/java/libjdns_sd.jnilib',
'/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK',
]
end,
].keep_if { |v| !v.nil? }
]
zap trash: [
'~/Library/Application Support/Java/',

20
Casks/zulu7.rb

@ -22,28 +22,12 @@ cask 'zulu7' do
system_command '/usr/libexec/PlistBuddy',
args: ['-c', 'Add :JavaVM:JVMCapabilities: string JNI', "/Library/Java/JavaVirtualMachines/zulu#{version.before_comma}.jdk/Contents/Info.plist"],
sudo: true
if MacOS.version <= :mavericks
system_command '/bin/rm',
args: ['-rf', '--', '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'],
sudo: true
system_command '/bin/ln',
args: ['-nsf', '--', "/Library/Java/JavaVirtualMachines/zulu#{version.before_comma}.jdk/Contents", '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'],
sudo: true
end
end
uninstall pkgutil: [
"com.azulsystems.zulu.#{version.minor}",
],
uninstall pkgutil: "com.azulsystems.zulu.#{version.minor}",
delete: [
"/Library/Java/JavaVirtualMachines/zulu#{version.before_comma}.jdk",
"/Library/Java/JavaVirtualMachines/zulu-#{version.minor}.jdk",
'/Library/Java/Home',
if MacOS.version <= :mavericks
[
'/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK',
]
end,
].keep_if { |v| !v.nil? }
]
end

20
Casks/zulu8.rb

@ -22,28 +22,12 @@ cask 'zulu8' do
system_command '/usr/libexec/PlistBuddy',
args: ['-c', 'Add :JavaVM:JVMCapabilities: string JNI', "/Library/Java/JavaVirtualMachines/zulu#{version.before_comma}.jdk/Contents/Info.plist"],
sudo: true
if MacOS.version <= :mavericks
system_command '/bin/rm',
args: ['-rf', '--', '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'],
sudo: true
system_command '/bin/ln',
args: ['-nsf', '--', "/Library/Java/JavaVirtualMachines/zulu#{version.before_comma}.jdk/Contents", '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'],
sudo: true
end
end
uninstall pkgutil: [
"com.azulsystems.zulu.#{version.minor}",
],
uninstall pkgutil: "com.azulsystems.zulu.#{version.minor}",
delete: [
"/Library/Java/JavaVirtualMachines/zulu#{version.before_comma}.jdk",
"/Library/Java/JavaVirtualMachines/zulu-#{version.minor}.jdk",
'/Library/Java/Home',
if MacOS.version <= :mavericks
[
'/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK',
]
end,
].keep_if { |v| !v.nil? }
]
end

Loading…
Cancel
Save