Support JRE Images (#162)

* Support JRE Images

* Clean up

Co-authored-by: Timothy Purchas <timothy.purchas@corelogic.com.au>
This commit is contained in:
Tim P 2021-08-23 05:12:57 +10:00 committed by GitHub
parent 4a52255a36
commit 77ffaf89e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ function metadata_url {
local os=$1
local arch=$2
echo "https://joschi.github.io/java-metadata/metadata/ga/${os}/${arch}/jdk.json"
echo "https://joschi.github.io/java-metadata/metadata/ga/${os}/${arch}.json"
}
function fetch_metadata {
@ -45,7 +45,7 @@ done
RELEASE_QUERY='.[]
| select(.file_type | IN("tar.gz", "zip"))
| .["features"] = (.features | map(select(IN("musl", "javafx", "lite", "large_heap"))))
| [([.vendor, if (.jvm_impl == "openj9") then .jvm_impl else empty end, if ((.features | length) == 0) then empty else (.features | join("-")) end, .version] | join("-")), .filename, .url, .sha256]
| [([.vendor, if (.image_type == "jre") then .image_type else empty end, if (.jvm_impl == "openj9") then .jvm_impl else empty end, if ((.features | length) == 0) then empty else (.features | join("-")) end, .version] | join("-")), .filename, .url, .sha256]
| @tsv'
for FILE in "${DATA_DIR}"/*.json
do