Preserve compound Liberica build versions from .sdkmanrc (#1268)

* Initial plan

* Preserve compound Liberica build versions from release metadata

Co-authored-by: brunoborges <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: brunoborges <[email protected]>
This commit is contained in:
Copilot
2026-09-10 23:15:52 -04:00
committed by GitHub
co-authored by copilot-swe-agent[bot] <198982749+[email protected]> brunoborges
parent de7274f081
commit 1aa87b638d
4 changed files with 68 additions and 3 deletions
+2 -1
View File
@@ -128,7 +128,8 @@ class LibericaDistributions extends _base_installer_js__WEBPACK_IMPORTED_MODULE_
}
}
convertVersionToSemver(version) {
const { buildVersion, featureVersion, interimVersion, updateVersion } = version;
const { featureVersion, interimVersion, updateVersion } = version;
const buildVersion = version.version.split('+')[1] || version.buildVersion;
const mainVersion = [featureVersion, interimVersion, updateVersion].join('.');
if (buildVersion != 0) {
return `${mainVersion}+${buildVersion}`;