temurin: add support for Alpine Linux

This commit is contained in:
George Adams 2024-08-16 10:16:19 +01:00
parent 67fbd726da
commit 12cfe0fd55
No known key found for this signature in database
GPG Key ID: 7B8D7E4421A0916D
1 changed files with 5 additions and 0 deletions

View File

@ -173,6 +173,11 @@ export class TemurinDistribution extends JavaBase {
return 'mac'; return 'mac';
case 'win32': case 'win32':
return 'windows'; return 'windows';
case 'linux':
if (fs.existsSync('/etc/alpine-release')) {
return 'alpine-linux';
}
return 'linux';
default: default:
return process.platform; return process.platform;
} }