chore: upgrade extract-zip for installer (#34166)
This commit is contained in:
parent
ba3aca8200
commit
ff5f66395e
2 changed files with 4 additions and 13 deletions
|
@ -70,17 +70,8 @@ function isInstalled () {
|
||||||
|
|
||||||
// unzips and makes path.txt point at the correct executable
|
// unzips and makes path.txt point at the correct executable
|
||||||
function extractFile (zipPath) {
|
function extractFile (zipPath) {
|
||||||
return new Promise((resolve, reject) => {
|
return extract(zipPath, { dir: path.join(__dirname, 'dist') })
|
||||||
extract(zipPath, { dir: path.join(__dirname, 'dist') }, err => {
|
.then(() => fs.promises.writeFile(path.join(__dirname, 'path.txt'), platformPath));
|
||||||
if (err) return reject(err);
|
|
||||||
|
|
||||||
fs.writeFile(path.join(__dirname, 'path.txt'), platformPath, err => {
|
|
||||||
if (err) return reject(err);
|
|
||||||
|
|
||||||
resolve();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPlatformPath () {
|
function getPlatformPath () {
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@electron/get": "^1.14.1",
|
"@electron/get": "^1.14.1",
|
||||||
"@types/node": "^16.11.26",
|
"@types/node": "^16.11.26",
|
||||||
"extract-zip": "^1.0.3"
|
"extract-zip": "^2.0.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 8.6"
|
"node": ">= 10.17.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue