manual refactoring + versioninfo xml refactoring

This commit is contained in:
Marc Froehlich
2026-07-20 23:18:13 +02:00
parent e7631ef688
commit 8ee9d59d7a
2 changed files with 24 additions and 9 deletions
@@ -8095,7 +8095,7 @@ public class Kst4ContestApplication extends Application implements StatusUpdateL
vbxUpdateWindow.getChildren().add(upd_gridPaneUpd);
upd_gridPaneUpd.add(lblUpdateInfo, 0,0,1,1);
upd_gridPaneUpd.add(lblUpdateInfo2, 0,1,1,1);
upd_gridPaneUpd.add(new Label("kst4Contest " + ApplicationConstants.APPLICATION_CURRENT_VERSION), 1,1,1,1);
upd_gridPaneUpd.add(new Label("KST4Contest " + ApplicationConstants.APPLICATION_CURRENT_VERSION), 1,1,1,1);
upd_gridPaneUpd.add(lblUpdateInfo3, 0,2,1,1);
upd_gridPaneUpd.add(new Label("KST4Contest " + chatcontroller.getUpdateInformation().getLatestVersionForDisplay()), 1,2,1,1);
upd_gridPaneUpd.add(lblUpdateInfoChanges, 0,3,1,1);
+23 -8
View File
@@ -133,20 +133,35 @@ module.exports = async function () {
parts.push("<praktiKST>");
const latestTag = stable ? stable.tagName : null;
const winFilename = latestTag ? `praktiKST-${latestTag}-windows-x64.zip` : "";
parts.push(" <latestVersion>");
if (stable) {
const latestIssues = await getIssuesForRelease("1970-01-01T00:00:00Z", stable.publishedAt);
parts.push(` <versionNumber>${escapeXml(toAppVersionNumber(latestTag))}</versionNumber>`);
const latestIssues = await getIssuesForRelease(
"1970-01-01T00:00:00Z",
stable.publishedAt
);
// Kept for application versions that still expect the old numeric format.
parts.push(
` <versionNumber>${escapeXml(toAppVersionNumber(latestTag))}</versionNumber>`
);
// Used by current application versions for correct semantic comparison
// and display, for example 1.41.1 instead of 1.411.
parts.push(
` <semanticVersion>${escapeXml(toSemanticVersion(latestTag))}</semanticVersion>`
);
parts.push(" <adminMessage></adminMessage>");
parts.push(
` <majorChanges>${escapeXml(latestIssues.added.slice(0, 300))}</majorChanges>`
);
// The release page is deliberately platform-neutral. The application
// cannot know whether the user needs Windows, Linux or macOS packages.
parts.push(
` <latestVersionPathOnWebserver>https://github.com/${REPO}/releases/tag/${latestTag}</latestVersionPathOnWebserver>`
);
parts.push(" <adminMessage></adminMessage>");
parts.push(` <majorChanges>${escapeXml(latestIssues.added.slice(0, 300))}</majorChanges>`);
parts.push(
` <latestVersionPathOnWebserver>https://github.com/${REPO}/releases/download/${latestTag}/${winFilename}</latestVersionPathOnWebserver>`
);
}
parts.push(" </latestVersion>");