From 12cfe0fd55ff35adb17567d4ad45d59e7c340702 Mon Sep 17 00:00:00 2001 From: George Adams Date: Fri, 16 Aug 2024 10:16:19 +0100 Subject: [PATCH] temurin: add support for Alpine Linux --- src/distributions/temurin/installer.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/distributions/temurin/installer.ts b/src/distributions/temurin/installer.ts index 4a1989bca..2b305eb1d 100644 --- a/src/distributions/temurin/installer.ts +++ b/src/distributions/temurin/installer.ts @@ -173,6 +173,11 @@ export class TemurinDistribution extends JavaBase { return 'mac'; case 'win32': return 'windows'; + case 'linux': + if (fs.existsSync('/etc/alpine-release')) { + return 'alpine-linux'; + } + return 'linux'; default: return process.platform; }