From 11641ae0fb04e408ed473320b847b4cebb7e7ce2 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Mon, 25 Nov 2024 14:56:21 +0100 Subject: [PATCH] build: fix universal arch title is missing in output Signed-off-by: Grigorii K. Shartsev --- forge.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/forge.config.js b/forge.config.js index a20f23e7..c796987d 100644 --- a/forge.config.js +++ b/forge.config.js @@ -54,10 +54,12 @@ function generateDistName(platform, arch, ext, includeVersion = false) { x64: 'x64', arm64: 'arm', } + const platformTitle = platformTitles[platform] ?? platform + const archTitle = archTitles[arch] ?? arch const version = packageJSON.version return includeVersion - ? `${CONFIG.applicationNameSanitized}-v${version}-${platformTitles[platform]}-${archTitles[arch]}${ext}` - : `${CONFIG.applicationNameSanitized}-${platformTitles[platform]}-${archTitles[arch]}${ext}` + ? `${CONFIG.applicationNameSanitized}-v${version}-${platformTitle}-${archTitle}${ext}` + : `${CONFIG.applicationNameSanitized}-${platformTitle}-${archTitle}${ext}` } /**