File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 2
2
"use strict" ;
3
3
import osenv = require( "osenv" ) ;
4
4
import path = require( "path" ) ;
5
+ import util = require( "util" ) ;
5
6
6
7
export class PostInstallCommand implements ICommand {
7
8
private static CALL_PROFILE_SCRIPT =
@@ -16,6 +17,17 @@ export class PostInstallCommand implements ICommand {
16
17
public disableAnalytics = true ;
17
18
18
19
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 > {
19
31
return ( ( ) => {
20
32
var scriptsOk = true ;
21
33
You can’t perform that action at this time.
0 commit comments