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

View file

@ -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;
}