Skip to content

Commit

Permalink
Update JRE version retrieval to use 'semver' property instead of 'ope…
Browse files Browse the repository at this point in the history
…njdk_version'.

Fixes JRE 17.0.9+9.1 for Windows not downloading. Adoptium API seems to want semver.
  • Loading branch information
olvidalo committed Nov 14, 2023
1 parent 336e651 commit a2d2820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/jre-update/get-jre.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ for (const platform of platforms) {

const arches = platform === "darwin" ? ["x64", "aarch64"] : ["x64"]
for (const arch of arches) {
const version = jreVersions[os]?.[arch]?.openjdk_version
const version = jreVersions[os]?.[arch]?.semver

if (!version) {
throw new Error(`Could not find JRE version for ${os} (${arch}) in versions file (${jreVersionFile}).`)
Expand Down

0 comments on commit a2d2820

Please sign in to comment.