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(
() =>
new Promise((resolve, reject) => {
exec(this.adbPath + ' -s ' + serial + ' install -r -d ' + outpath, {}, (error, stdout, stderr) => {
console.log(error, stdout, stderr);
if (error) {
reject(error.message ? error.message : error.toString());
} else {
resolve();
exec(
'"' + this.adbPath + '" -s ' + serial + ' install -r -d "' + outpath + '"',
{},
(error, stdout, stderr) => {
if (error) {
reject(error.message ? error.message : error.toString());
} else {
resolve();
}
}
});
);
})
)
.then(() => (isLocal ? null : fs.unlinkSync(outpath)))