File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ export class BuildCommandBase {
5
5
executeCore ( args : string [ ] , buildConfig ?: IBuildConfig ) : IFuture < void > {
6
6
return ( ( ) => {
7
7
let platform = args [ 0 ] . toLowerCase ( ) ;
8
- this . $platformService . prepareAndBuild ( platform , buildConfig , true ) . wait ( ) ;
8
+ this . $platformService . preparePlatform ( platform , true ) . wait ( ) ;
9
+ this . $platformService . buildPlatform ( platform , buildConfig ) . wait ( ) ;
9
10
if ( this . $options . copyTo ) {
10
11
this . $platformService . copyLastOutput ( platform , this . $options . copyTo , { isForDevice : this . $options . forDevice } ) . wait ( ) ;
11
12
}
Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ export class PlatformService implements IPlatformService {
367
367
}
368
368
369
369
private getBuildOutputPath ( platform : string , platformData : IPlatformData , buildConfig ?: IBuildConfig ) : string {
370
- let buildForDevice = buildConfig ? buildConfig . buildForDevice : false ;
370
+ let buildForDevice = buildConfig ? buildConfig . buildForDevice : this . $options . forDevice ;
371
371
if ( platform === this . $devicePlatformsConstants . iOS . toLowerCase ( ) ) {
372
372
return buildForDevice ? platformData . deviceBuildOutputPath : platformData . emulatorBuildOutputPath ;
373
373
}
You can’t perform that action at this time.
0 commit comments