mirror of
https://github.com/halcyon/asdf-java.git
synced 2024-10-06 07:42:09 +08:00
Support JRE Images (#162)
* Support JRE Images * Clean up Co-authored-by: Timothy Purchas <timothy.purchas@corelogic.com.au>
This commit is contained in:
parent
4a52255a36
commit
77ffaf89e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user