Skip to content

Commit

Permalink
Merge pull request #180691 from andrew-m-leonard/temurin8.422.05.1
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane authored Jul 30, 2024
2 parents 8a36efc + 4a9415c commit 281d166
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 281d166

Please sign in to comment.