File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
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 =
@@ -11,11 +12,22 @@ export class PostInstallCommand implements ICommand {
11
12
12
13
constructor ( private $fs : IFileSystem ,
13
14
private $childProcess : IChildProcess ,
14
- private $logger : ILogger ) { }
15
+ private $logger : ILogger ,
16
+ private $staticConfig : IStaticConfig ) { }
15
17
16
18
public disableAnalytics = true ;
17
19
18
20
public execute ( args : string [ ] ) : IFuture < void > {
21
+ return ( ( ) => {
22
+ if ( process . platform !== "win32" ) {
23
+ this . $fs . chmod ( this . $staticConfig . 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