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
17 changes: 12 additions & 5 deletions Casks/t/[email protected]
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
cask "temurin@8" do
version "8,422,05"
sha256 "1056cbff0f9e2ae23cebbb4f6135a0d8fd9cc62153de629d441d6e765a913a9d"
# NOTE: Last update was for jdk8u422-b05.1 "point release" re-build, next release will need to remove
# the version.csv.fourth etc in 4 places:
# version string : remove ",1"
# url : remove ".#{version.csv.fourth}"
# regex : remove "\.(\d+)"
# livecheck strategy version string : remove ",#{match[4]}"

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",
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}.#{version.csv.fourth}/OpenJDK#{version.csv.first}U-jdk_x64_mac_hotspot_#{version.csv.first}u#{version.csv.second}b#{version.csv.third}.pkg",
andrew-m-leonard marked this conversation as resolved.
Show resolved Hide resolved
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)
andrew-m-leonard marked this conversation as resolved.
Show resolved Hide resolved
strategy :json do |json, regex|
json.map do |release|
match = release["release_name"]&.match(regex)
next if match.blank?

"#{match[1]},#{match[2]},#{match[3]}"
"#{match[1]},#{match[2]},#{match[3]},#{match[4]}"
andrew-m-leonard marked this conversation as resolved.
Show resolved Hide resolved
end
end
end
Expand Down
Loading