added executable bit to adb

This commit is contained in:
Shane Harris
2020-08-17 13:31:48 +01:00
committed by Your Name
parent 34caadf3b5
commit 91eaf4dc1c
2 changed files with 5 additions and 0 deletions
Binary file not shown.
+5
View File
@@ -240,6 +240,11 @@ export class AppService {
.createReadStream(this.path.join(sourcesPath, file))
.pipe(this.fs.createWriteStream(this.path.join(this.appData, 'platform-tools', file)));
});
if (this.os.platform() === 'darwin' || this.os.platform() === 'linux') {
this.setExecutable(this.path.join(this.appData, 'platform-tools', 'adb')).then(() => resolve());
} else {
return resolve();
}
setTimeout(() => resolve(), 5000);
});
});