This commit is contained in:
Your Name
2020-08-17 13:31:49 +01:00
parent ed408c43e8
commit ec5eed9b5a
2 changed files with 10 additions and 7 deletions
Binary file not shown.
+10 -7
View File
@@ -206,14 +206,17 @@ class ADB {
.then( .then(
() => () =>
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
exec(this.adbPath + ' -s ' + serial + ' install -r -d ' + outpath, {}, (error, stdout, stderr) => { exec(
console.log(error, stdout, stderr); '"' + this.adbPath + '" -s ' + serial + ' install -r -d "' + outpath + '"',
if (error) { {},
reject(error.message ? error.message : error.toString()); (error, stdout, stderr) => {
} else { if (error) {
resolve(); reject(error.message ? error.message : error.toString());
} else {
resolve();
}
} }
}); );
}) })
) )
.then(() => (isLocal ? null : fs.unlinkSync(outpath))) .then(() => (isLocal ? null : fs.unlinkSync(outpath)))