Skip to content

Commit 6cf7162

Browse files
Fatme HavaluovaFatme Havaluova
authored andcommitted
Set execution bit to adb file
1 parent 48a8393 commit 6cf7162

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/commands/post-install.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"use strict";
33
import osenv = require("osenv");
44
import path = require("path");
5+
import util = require("util");
56

67
export class PostInstallCommand implements ICommand {
78
private static CALL_PROFILE_SCRIPT =
@@ -16,6 +17,17 @@ export class PostInstallCommand implements ICommand {
1617
public disableAnalytics = true;
1718

1819
public execute(args: string[]): IFuture<void> {
20+
return (() => {
21+
if(process.platform !== "win32") {
22+
var adbFilePath = util.format("resources/platform-tools/android/%s/adb", process.platform);
23+
this.$fs.chmod(adbFilePath, 755).wait();
24+
}
25+
26+
this.enableAutoCompletion().wait();
27+
}).future<void>()();
28+
}
29+
30+
private enableAutoCompletion(): IFuture<void> {
1931
return (() => {
2032
var scriptsOk = true;
2133

0 commit comments

Comments
 (0)