From 3fb973f2fcbb11843cc62a9a983cb5563d20aad4 Mon Sep 17 00:00:00 2001 From: Gerrit Grunwald Date: Fri, 23 Apr 2021 12:12:30 +0200 Subject: [PATCH] Added support for Microsoft and OpenLogic --- src/constants.ts | 2 ++ src/installer.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/constants.ts b/src/constants.ts index 6987e650..35805f17 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -25,8 +25,10 @@ export const DISTROS: string[] = [ 'corretto', 'dragonwell', 'liberica', + 'microsoft', 'ojdk_build', 'oracle_openjdk', + 'open_logic', 'sap_machine', 'trava', 'zulu' diff --git a/src/installer.ts b/src/installer.ts index c662699e..00c84401 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -213,7 +213,7 @@ async function getDownloadInfo( distribution = distro.toLowerCase(); } else { throw new Error( - `distro argument '${distro}' is not in [aoj | aoj_openj9 | corretto | dragonwell | liberica | ojdk_build | oracle_openjdk | sap_machine | trava | zulu]` + `distro argument '${distro}' is not in [aoj | aoj_openj9 | corretto | dragonwell | liberica | microsoft | ojdk_build | open_logic | oracle_openjdk | sap_machine | trava | zulu]` ); } } else {