Skip to content

Commit fd73858

Browse files
committed
temurin: add support for Alpine Linux
1 parent 67fbd72 commit fd73858

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: src/distributions/temurin/installer.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,16 @@ export class TemurinDistribution extends JavaBase {
170170
// Adoptium has own platform names so need to map them
171171
switch (process.platform) {
172172
case 'darwin':
173-
return 'mac';
173+
return 'mac';
174174
case 'win32':
175-
return 'windows';
175+
return 'windows';
176+
case 'linux':
177+
if (fs.existsSync('/etc/alpine-release')) {
178+
return 'alpine-linux';
179+
}
180+
return 'linux';
176181
default:
177-
return process.platform;
182+
return process.platform;
178183
}
179184
}
180185
}

0 commit comments

Comments
 (0)