Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Feb 9, 2024
1 parent 20e233e commit 200134e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3273,7 +3273,7 @@ function getExt() {
switch (process.platform) {
case 'linux':
case 'darwin': return 'tar.gz';
case 'win32': return '.zip';
case 'win32': return 'zip';
}
return 'tar.gz'; /* Default: linux */
}
Expand Down Expand Up @@ -3304,7 +3304,7 @@ function run() {
fs_1.default.mkdirSync(`${tmp}/eask-${version}`);
/* Extraction */
{
if (ext === 'zip')
if (platform === 'win')
yield exec.exec('unzip', [`${tmp}/${archiveName}`, '-d', `${tmp}/eask-${version}`]);
else
yield exec.exec('tar', ['-xvzf', `${tmp}/${archiveName}`, '-C', `${tmp}/eask-${version}`]);
Expand Down

0 comments on commit 200134e

Please sign in to comment.