From 9404300a9e2f8005f6cfe75e79e1a7437af93c82 Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Corvo Date: Tue, 16 Jul 2024 14:29:48 -0700 Subject: [PATCH] Fix linux deb artifact name (#2389) * Avoid adding platform to the .deb binary --- ui/desktop/electron-app/config/forge.config.js | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/ui/desktop/electron-app/config/forge.config.js b/ui/desktop/electron-app/config/forge.config.js index c9db5b112..6725c1bb6 100644 --- a/ui/desktop/electron-app/config/forge.config.js +++ b/ui/desktop/electron-app/config/forge.config.js @@ -103,16 +103,25 @@ module.exports = { fs.mkdirSync(destination, { recursive: true }); // Copy artifacts artifacts.forEach(async (artifact) => { - // Changing arch and platform to be compliant with artifact namings. + // Change arch and platform to be compliant with blob signature naming rules. + let name; if (arch === 'x64') { arch = 'amd64'; } + if (platform === 'win32') { platform = 'windows'; } - const name = `boundary-desktop_${version}_${platform}_${arch}${path.extname( - artifact, - )}`; + + if (platform === 'linux' && artifact.endsWith('.deb')) { + name = `boundary-desktop_${version}_${arch}${path.extname( + artifact, + )}`; + } else { + name = `boundary-desktop_${version}_${platform}_${arch}${path.extname( + artifact, + )}`; + } const artifactDestination = path.join(destination, name); console.log(`[release] Found artifact: ${artifact}`); try {