Skip to content

Commit 3a3c1d4

Browse files
Merge pull request #6 from simonedevit/NewNPM-unzip-fix
Prevent partial outputs when unzipping Babylon Native sources on macOS
2 parents 29e32bd + a451453 commit 3a3c1d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Package/gulpfile.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,8 @@ async function downloadZip(url, dest) {
260260
}
261261

262262
async function unzipFile(zipPath, destDir) {
263-
await fs.createReadStream(zipPath)
264-
.pipe(unzipper.Extract({ path: destDir }))
265-
.promise();
263+
const dir = await unzipper.Open.file(zipPath);
264+
await dir.extract({ path: destDir });
266265
}
267266

268267
function deleteFile(filePath) {

0 commit comments

Comments
 (0)