Skip to content

Commit

Permalink
chore: add architecture id into inso artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
hexchain committed Jan 27, 2025
1 parent c13a4cf commit 1663f2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/insomnia-inso/src/scripts/artifacts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// This file is responsible for compressing the binaries for each architecture
import fs from 'node:fs/promises';
import process from 'node:process';

import { ProcessEnvOptions, spawn } from 'child_process';
import path from 'path';
Expand Down Expand Up @@ -27,7 +28,7 @@ const spawnCompressProcess = (cwd: ProcessEnvOptions['cwd']) => {
platform === 'win32' ? '-a -cf' : '-cJf',
platform === 'win32'
? `inso-windows-${version}.zip`
: `inso-linux-${version}.tar.xz`,
: `inso-linux-${process.arch}-${version}.tar.xz`,
platform === 'win32' ? 'inso.exe' : 'inso',
], { cwd, shell: platform === 'win32' });
}
Expand Down

0 comments on commit 1663f2d

Please sign in to comment.