From 244aafd0a2344230fee300fc106181573dbe350c Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Mon, 5 Sep 2022 15:44:00 +0200 Subject: [PATCH] minor changes --- dist/setup/index.js | 2 +- src/distributions/microsoft/installer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index c5d3a4ce..597f03c6 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -102460,7 +102460,7 @@ class MicrosoftDistributions extends base_installer_1.JavaBase { .map(item => item.version) .join(', ')}`); } - return { url: foundRelease.release_url, version: foundRelease.version }; + return { url: foundRelease.files[0].download_url, version: foundRelease.version }; }); } getAvailableVersions() { diff --git a/src/distributions/microsoft/installer.ts b/src/distributions/microsoft/installer.ts index 489a3d39..d3aa569d 100644 --- a/src/distributions/microsoft/installer.ts +++ b/src/distributions/microsoft/installer.ts @@ -97,7 +97,7 @@ export class MicrosoftDistributions extends JavaBase { ); } - return { url: foundRelease.release_url, version: foundRelease.version }; + return { url: foundRelease.files[0].download_url, version: foundRelease.version }; } private async getAvailableVersions(): Promise {