diff --git a/update_data.bash b/update_data.bash index a441c5f..6f50ee1 100755 --- a/update_data.bash +++ b/update_data.bash @@ -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