diff --git a/Casks/sapmachine-jdk.rb b/Casks/sapmachine-jdk.rb index 08164e24b554b..2d054bc4dc6d4 100644 --- a/Casks/sapmachine-jdk.rb +++ b/Casks/sapmachine-jdk.rb @@ -1,13 +1,13 @@ 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 Java Development Kit' homepage 'https://github.com/SAP/SapMachine' - artifact "sapmachine-jdk-#{version.before_comma}.jdk", target: "/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version.before_comma}.jdk" + artifact "sapmachine-jdk-#{version}.jdk", target: "/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version}.jdk" uninstall rmdir: '/Library/Java/JavaVirtualMachines' end