@@ -13,7 +13,7 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
13
13
this . $projectData . initializeProjectData ( ) ;
14
14
}
15
15
16
- public async executeCore ( args : string [ ] ) : Promise < void > {
16
+ public async executeCore ( args : string [ ] ) : Promise < string > {
17
17
const platform = args [ 0 ] . toLowerCase ( ) ;
18
18
const appFilesUpdaterOptions : IAppFilesUpdaterOptions = {
19
19
bundle : ! ! this . $options . bundle ,
@@ -44,10 +44,12 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
44
44
keyStorePassword : this . $options . keyStorePassword ,
45
45
androidBundle : this . $options . aab
46
46
} ;
47
- await this . $platformService . buildPlatform ( platform , buildConfig , this . $projectData ) ;
47
+ const outputPath = await this . $platformService . buildPlatform ( platform , buildConfig , this . $projectData ) ;
48
48
if ( this . $options . copyTo ) {
49
49
this . $platformService . copyLastOutput ( platform , this . $options . copyTo , buildConfig , this . $projectData ) ;
50
50
}
51
+
52
+ return outputPath
51
53
}
52
54
53
55
protected validatePlatform ( platform : string ) : void {
@@ -90,7 +92,7 @@ export class BuildIosCommand extends BuildCommandBase implements ICommand {
90
92
}
91
93
92
94
public async execute ( args : string [ ] ) : Promise < void > {
93
- return this . executeCore ( [ this . $platformsData . availablePlatforms . iOS ] ) ;
95
+ await this . executeCore ( [ this . $platformsData . availablePlatforms . iOS ] ) ;
94
96
}
95
97
96
98
public async canExecute ( args : string [ ] ) : Promise < boolean | ICanExecuteCommandOutput > {
@@ -128,10 +130,9 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
128
130
const buildResult = await this . executeCore ( [ this . $platformsData . availablePlatforms . Android ] ) ;
129
131
130
132
if ( this . $options . aab ) {
133
+ this . $logger . info ( `Your .aab file is located at: ${ buildResult } ` ) ;
131
134
this . $logger . info ( "Link to documentation article" ) ;
132
135
}
133
-
134
- return buildResult ;
135
136
}
136
137
137
138
public async canExecute ( args : string [ ] ) : Promise < boolean | ICanExecuteCommandOutput > {
0 commit comments