diff --git a/lib/action.js b/lib/action.js index 73cf97b8..629e08ca 100644 --- a/lib/action.js +++ b/lib/action.js @@ -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'; diff --git a/src/action.ts b/src/action.ts index 6e71162e..b06fe114 100644 --- a/src/action.ts +++ b/src/action.ts @@ -30,10 +30,10 @@ async function downloadUpx(): Promise { ) 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'