Skip to content

Commit

Permalink
Make sure only specific versions of upx are installed
Browse files Browse the repository at this point in the history
  • Loading branch information
svenstaro committed May 23, 2023
1 parent 93b321a commit 8dc2532
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ function downloadUpx() {
return `${tmpdir}/upx`;
}
else if (os.type() == 'Darwin') {
yield exec.exec('brew install upx');
yield exec.exec(`brew install upx`);
return 'upx';
}
else if (os.type() == 'Windows_NT') {
yield exec.exec('choco install upx');
yield exec.exec(`choco install upx --no-progress --version=${upx_version}`);
return 'upx';
}
throw 'unsupported OS';
Expand Down
4 changes: 2 additions & 2 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ async function downloadUpx(): Promise<string> {
)
return `${tmpdir}/upx`
} else if (os.type() == 'Darwin') {
await exec.exec('brew install upx')
await exec.exec(`brew install upx`)
return 'upx'
} else if (os.type() == 'Windows_NT') {
await exec.exec('choco install upx')
await exec.exec(`choco install upx --no-progress --version=${upx_version}`)
return 'upx'
}
throw 'unsupported OS'
Expand Down

0 comments on commit 8dc2532

Please sign in to comment.