add unzip for macos
This commit is contained in:
@@ -116,7 +116,12 @@ function extractFile(file, destDir) {
|
||||
yield extractTarXz(file, destDir);
|
||||
}
|
||||
else {
|
||||
yield tc.extractZip(file, destDir);
|
||||
if (IS_DARWIN) {
|
||||
yield extractZipDarwin(file, destDir);
|
||||
}
|
||||
else {
|
||||
yield tc.extractZip(file, destDir);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -148,3 +153,9 @@ function _createExtractFolder(dest) {
|
||||
return dest;
|
||||
});
|
||||
}
|
||||
function extractZipDarwin(file, dest) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const unzipPath = path.join(__dirname, '..', 'scripts', 'externals', 'unzip-darwin');
|
||||
yield exec_1.exec(`"${unzipPath}"`, [file], { cwd: dest });
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user