diff --git a/src/distributions/temurin/installer.ts b/src/distributions/temurin/installer.ts index 4a1989bca..4a7bb513f 100644 --- a/src/distributions/temurin/installer.ts +++ b/src/distributions/temurin/installer.ts @@ -170,11 +170,16 @@ export class TemurinDistribution extends JavaBase { // Adoptium has own platform names so need to map them switch (process.platform) { case 'darwin': - return 'mac'; + return 'mac'; case 'win32': - return 'windows'; + return 'windows'; + case 'linux': + if (fs.existsSync('/etc/alpine-release')) { + return 'alpine-linux'; + } + return 'linux'; default: - return process.platform; + return process.platform; } } }