@@ -13,7 +13,7 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
1313 this . $projectData . initializeProjectData ( ) ;
1414 }
1515
16- public async executeCore ( args : string [ ] ) : Promise < void > {
16+ public async executeCore ( args : string [ ] ) : Promise < string > {
1717 const platform = args [ 0 ] . toLowerCase ( ) ;
1818 const appFilesUpdaterOptions : IAppFilesUpdaterOptions = {
1919 bundle : ! ! this . $options . bundle ,
@@ -44,10 +44,12 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
4444 keyStorePassword : this . $options . keyStorePassword ,
4545 androidBundle : this . $options . aab
4646 } ;
47- await this . $platformService . buildPlatform ( platform , buildConfig , this . $projectData ) ;
47+ const outputPath = await this . $platformService . buildPlatform ( platform , buildConfig , this . $projectData ) ;
4848 if ( this . $options . copyTo ) {
4949 this . $platformService . copyLastOutput ( platform , this . $options . copyTo , buildConfig , this . $projectData ) ;
5050 }
51+
52+ return outputPath
5153 }
5254
5355 protected validatePlatform ( platform : string ) : void {
@@ -90,7 +92,7 @@ export class BuildIosCommand extends BuildCommandBase implements ICommand {
9092 }
9193
9294 public async execute ( args : string [ ] ) : Promise < void > {
93- return this . executeCore ( [ this . $platformsData . availablePlatforms . iOS ] ) ;
95+ await this . executeCore ( [ this . $platformsData . availablePlatforms . iOS ] ) ;
9496 }
9597
9698 public async canExecute ( args : string [ ] ) : Promise < boolean | ICanExecuteCommandOutput > {
@@ -128,10 +130,9 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
128130 const buildResult = await this . executeCore ( [ this . $platformsData . availablePlatforms . Android ] ) ;
129131
130132 if ( this . $options . aab ) {
133+ this . $logger . info ( `Your .aab file is located at: ${ buildResult } ` ) ;
131134 this . $logger . info ( "Link to documentation article" ) ;
132135 }
133-
134- return buildResult ;
135136 }
136137
137138 public async canExecute ( args : string [ ] ) : Promise < boolean | ICanExecuteCommandOutput > {
0 commit comments