Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sapmachine-jdk to 11.0.2 #58377

Merged
merged 2 commits into from
Feb 7, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Casks/sapmachine-jdk.rb
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
cask 'sapmachine-jdk' do
version '11.0.1,13-0'
sha256 '600fc431d96fbc0b22a3cb160a1b1fbe878b887efd5be99668f3cf9677aa11cc'
version '11.0.2'
sha256 'c17526aca0891ab291916faeca7a6cdcef77d63de8acb8362c1af0eb95a9c680'

url "https://github.com/SAP/SapMachine/releases/download/sapmachine-#{version.before_comma}+#{version.after_comma}/sapmachine-jdk-#{version.before_comma}.#{version.after_comma.split('-').first}_osx-x64_bin.tar.gz"
appcast "https://sap.github.io/SapMachine/latest/#{version.before_comma}"
url "https://github.com/SAP/SapMachine/releases/download/sapmachine-#{version}/sapmachine-jdk-#{version}_osx-x64_bin.tar.gz"
appcast "https://sap.github.io/SapMachine/latest/#{version.major}"
name 'SapMachine JDK'
homepage 'https://github.com/SAP/SapMachine'

postflight do
system_command '/bin/mv',
args: [
'-f', '--',
"#{staged_path}/sapmachine-jdk-#{version.before_comma}.jdk",
"/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version.before_comma}.jdk"
"#{staged_path}/sapmachine-jdk-#{version}.jdk",
"/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version}.jdk"
],
sudo: true

system_command '/bin/mkdir',
args: ['-p', '--', "/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version.before_comma}.jdk/Contents/Home/bundle/Libraries"],
args: ['-p', '--', "/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version}.jdk/Contents/Home/bundle/Libraries"],
reitermarkus marked this conversation as resolved.
Show resolved Hide resolved
sudo: true

system_command '/bin/ln',
args: [
'-nsf', '--',
"/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version.before_comma}.jdk/Contents/Home/lib/server/libjvm.dylib",
"/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version.before_comma}.jdk/Contents/Home/bundle/Libraries/libserver.dylib"
"/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version}.jdk/Contents/Home/lib/server/libjvm.dylib",
"/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version}.jdk/Contents/Home/bundle/Libraries/libserver.dylib"
],
sudo: true
end

uninstall delete: "/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version.before_comma}.jdk"
uninstall delete: "/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version}.jdk"
end