Skip to content

Commit

Permalink
chore: upgrade extract-zip for installer
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed May 10, 2022
1 parent 9bcbe70 commit c8a8928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions npm/install.js
Expand Up @@ -71,15 +71,13 @@ function isInstalled () {
// unzips and makes path.txt point at the correct executable
function extractFile (zipPath) {
return new Promise((resolve, reject) => {
extract(zipPath, { dir: path.join(__dirname, 'dist') }, err => {
if (err) return reject(err);

extract(zipPath, { dir: path.join(__dirname, 'dist') }).then(() => {
fs.writeFile(path.join(__dirname, 'path.txt'), platformPath, err => {
if (err) return reject(err);

resolve();
});
});
}).catch(reject);
});
}

Expand Down
4 changes: 2 additions & 2 deletions npm/package.json
Expand Up @@ -10,9 +10,9 @@
"dependencies": {
"@electron/get": "^1.14.1",
"@types/node": "^16.11.26",
"extract-zip": "^1.0.3"
"extract-zip": "^2.0.1"
},
"engines": {
"node": ">= 8.6"
"node": ">= 10.17.0"
}
}

0 comments on commit c8a8928

Please sign in to comment.