Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions update_data.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down