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 {