Skip to content

Commit

Permalink
temurin: add support for Alpine Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Aug 16, 2024
1 parent 67fbd72 commit fd73858
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/distributions/temurin/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit fd73858

Please sign in to comment.