latest
This commit is contained in:
Binary file not shown.
+10
-7
@@ -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)))
|
||||||
|
|||||||
Reference in New Issue
Block a user