Fix linux deb artifact name (#2389)

* Avoid adding platform to the .deb binary
This commit is contained in:
Carlos Alcaide Corvo authored and GitHub committed 2024-07-16 14:29:48 -07:00
1 parent 8cb16dc46c
commit 9404300a9e
1 file changed
+13 -4
+13 -4
View File
@@ -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 {