From 04520410f14eaa04407b8ef562c9a2f5805dec89 Mon Sep 17 00:00:00 2001 From: RedDevilus Date: Fri, 15 Sep 2023 04:15:01 +0200 Subject: [PATCH] Update index.js --- src/components/ReleaseDownloadButton/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/ReleaseDownloadButton/index.js b/src/components/ReleaseDownloadButton/index.js index 2980b985..1306a6cc 100644 --- a/src/components/ReleaseDownloadButton/index.js +++ b/src/components/ReleaseDownloadButton/index.js @@ -71,9 +71,10 @@ function generateDropdownItems(release, os, assets, textRemovals, isNightly) { if (os === "windows") { displayName = "Download"; } else if (os === "linux") { - // Check for Flatpak or AppImage tags + // Check for Flatpak or AppImage tags which will make Appimage - x64 Qt and Flatpak - x64 Qt and no way to seemingly fix the regular way if (asset.additionalTags.includes("appimage")) { - displayName = "AppImage"; + displayName = + "App" + displayName.charAt(3).toUpperCase() + displayName.slice(4); // Convert "Appimage" to "AppImage" because tags failing to uppercase it } else if (asset.additionalTags.includes("flatpak")) { displayName = "Flatpak"; } @@ -81,7 +82,7 @@ function generateDropdownItems(release, os, assets, textRemovals, isNightly) { displayName = "Download"; } - // Strip the "- x64 Qt" for Linux + // Strip the "- x64 Qt" for Linux because it's being annoying with the tags and who cares about how good the code looks for now it's a bit of jank. if (os === "linux") { displayName = displayName.replace(/- x64 Qt$/, ""); }