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 temurin8 Cask for jdk8u422-b05.1 point release re-build #180691

Merged
merged 9 commits into from
Jul 30, 2024
10 changes: 5 additions & 5 deletions Casks/t/[email protected]
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
cask "temurin@8" do
version "8,422,05"
sha256 "1056cbff0f9e2ae23cebbb4f6135a0d8fd9cc62153de629d441d6e765a913a9d"
version "8,422,05.1"
sha256 "809d7c0b6c7c2fd483711fb784e4fb101ad431c71dc8e96aa9c2cffaa8bfa7b7"

url "https://github.com/adoptium/temurin8-binaries/releases/download/jdk#{version.csv.first}u#{version.csv.second}-b#{version.csv.third}/OpenJDK#{version.csv.first}U-jdk_x64_mac_hotspot_#{version.csv.first}u#{version.csv.second}b#{version.csv.third}.pkg",
url "https://github.com/adoptium/temurin8-binaries/releases/download/jdk#{version.csv.first}u#{version.csv.second}-b#{version.csv.third}/OpenJDK#{version.csv.first}U-jdk_x64_mac_hotspot_#{version.csv.first}u#{version.csv.second}b#{version.csv.third.split(".").first}.pkg",
verified: "github.com/adoptium/temurin8-binaries/"
name "Eclipse Temurin 8"
desc "JDK from the Eclipse Foundation (Adoptium)"
homepage "https://adoptium.net/"

livecheck do
url "https://api.adoptium.net/v3/assets/feature_releases/8/ga?architecture=x64&image_type=jdk&jvm_impl=hotspot&os=mac&page=0&page_size=1&project=jdk&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse"
regex(/^jdk(\d+)u(\d+)-b(\d+)$/i)
regex(/^jdk(\d+)u(\d+)-b(\d+(?:\.\d+)*)$/i)
strategy :json do |json, regex|
json.map do |release|
match = release["release_name"]&.match(regex)
Expand All @@ -21,7 +21,7 @@
end
end

pkg "OpenJDK#{version.csv.first}U-jdk_x64_mac_hotspot_#{version.csv.first}u#{version.csv.second}b#{version.csv.third}.pkg"
pkg "OpenJDK#{version.csv.first}U-jdk_x64_mac_hotspot_#{version.csv.first}u#{version.csv.second}b#{version.csv.third.split(".").first}.pkg"

uninstall pkgutil: "net.temurin.#{version.csv.first}.jdk"

Expand Down
Loading