2 arch arm: "aarch64", intel: "x64"
4 version "8.0.432,8.82.0.21"
5 sha256 arm: "c7a5a7aa2270a5538b9a6e646b34b7df2197b15d7c0f754cbe176ffe92576e12",
6 intel: "f0416768b80e570e8e9e6dc6e1042f36632a33f3052c089586b55d09f59da515"
8 url "https://cdn.azul.com/zulu/bin/zulu#{version.csv.second}-ca-jdk#{version.csv.first}-macosx_#{arch}.dmg",
9 referer: "https://www.azul.com/downloads/"
10 name "Azul Zulu Java 8 Standard Edition Development Kit"
11 desc "OpenJDK distribution from Azul"
12 homepage "https://www.azul.com/"
15 url "https://api.azul.com/metadata/v1/zulu/packages?java_version=#{version.major}&os=macos&arch=#{arch}&archive_type=dmg&java_package_type=jdk&javafx_bundled=false&latest=true&release_status=ga&availability_types=ca"
16 regex(/zulu(\d+(?:[._]\d+)*)-ca-jdk(\d+(?:\.\d+)*)-macosx_#{arch}\.dmg/i)
17 strategy :json do |json, regex|
19 match = item["download_url"]&.match(regex)
22 "#{match[2]},#{match[1]}"
27 depends_on macos: ">= :mojave"
29 pkg "Double-Click to Install Azul Zulu JDK #{version.major}.pkg"
31 uninstall pkgutil: "com.azulsystems.zulu.#{version.major}"
33 zap trash: "~/Library/Saved Application State/com.azul.zulu.#{version.major}*.java.savedState"