Compare commits

..

2 Commits

Author SHA1 Message Date
Accelerator1996
3cfea60ff2
Merge 205bf16cc8 into fd08b9c8dc 2024-07-24 03:32:32 +00:00
lvfei.lv
205bf16cc8 Fix the bug about parsing dragonwell version (#642) 2024-07-24 11:32:22 +08:00
2 changed files with 12 additions and 16 deletions

2
dist/setup/index.js vendored
View File

@ -124231,12 +124231,10 @@ class DragonwellDistribution extends base_installer_1.JavaBase {
}
// Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
// Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
if (jdkVersion.split('.').length > 3) {
const jdkVersionNums = jdkVersion
.replace('+', '.')
.split('.');
jdkVersion = (0, util_1.convertVersionToSemver)(`${jdkVersionNums.slice(0, 3).join('.')}.${jdkVersionNums[jdkVersionNums.length - 1]}`);
}
for (const edition in archMap) {
eligibleVersions.push({
os: platform,

View File

@ -149,7 +149,6 @@ export class DragonwellDistribution extends JavaBase {
// Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
// Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
if (jdkVersion.split('.').length > 3) {
const jdkVersionNums: string[] = jdkVersion
.replace('+', '.')
.split('.');
@ -158,7 +157,6 @@ export class DragonwellDistribution extends JavaBase {
jdkVersionNums[jdkVersionNums.length - 1]
}`
);
}
for (const edition in archMap) {
eligibleVersions.push({