Skip to content

Commit

Permalink
build: fix universal arch title is missing in output
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme committed Nov 25, 2024
1 parent 88eb825 commit 11641ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}

/**
Expand Down

0 comments on commit 11641ae

Please sign in to comment.