Skip to content

Commit

Permalink
build: fix cli minification file names
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation committed May 12, 2024
1 parent d009425 commit a7909f6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/build-cli.mts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ await Promise.all(

if (buildUpx) {
const [fileName, extension] = binary.fileName.split('.');
const minBinaryDist = join(root, 'dist', 'cli', `${fileName}_min.${extension ?? ''}`);
const minBinaryDist = join(
root,
'dist',
'cli',
`${fileName}_min${extension ? `.${extension}` : ''}`,
);
console.log(`Building upx binary for ${binary.os} ${binary.arch}`);
await cp(binaryDist, minBinaryDist);
await asyncExec(`upx --brute ${minBinaryDist}`);
Expand Down

0 comments on commit a7909f6

Please sign in to comment.