25 lines
1.0 KiB
Ruby
25 lines
1.0 KiB
Ruby
cask "sapmachine-jdk" do
|
|
arch arm: "aarch64", intel: "x64"
|
|
|
|
version "20.0.2"
|
|
sha256 arm: "8b52aef8ff440ffce862349c226dad1423c6550e1e367873ed84643c61dc2bb9",
|
|
intel: "56943625ec616509b7569c456ff19dfa7bf3489563fbe2f8ab3506cd18f5a33e"
|
|
|
|
url "https://github.com/SAP/SapMachine/releases/download/sapmachine-#{version}/sapmachine-jdk-#{version}_macos-#{arch}_bin.dmg",
|
|
verified: "github.com/SAP/SapMachine/"
|
|
name "SapMachine OpenJDK Development Kit"
|
|
desc "OpenJDK distribution from SAP"
|
|
homepage "https://sapmachine.io/"
|
|
|
|
# The version information on the homepage is rendered client-side from the
|
|
# following JSON file, so we have to check it instead.
|
|
livecheck do
|
|
url "https://sap.github.io/SapMachine/assets/data/sapmachine_releases.json"
|
|
regex(/["']tag["']:\s*["']sapmachine[._-]v?(\d+(?:\.\d+)*)["']/i)
|
|
end
|
|
|
|
artifact "sapmachine-jdk-#{version}.jdk", target: "/Library/Java/JavaVirtualMachines/sapmachine-jdk-#{version}.jdk"
|
|
|
|
zap trash: "~/Library/Saved Application State/com.sap.openjdk.jconsole.savedState"
|
|
end
|