@@ -183,7 +183,7 @@ function packageApps (platforms, dir, options, callback) {
183
183
var tasks = platformModules . map ( function ( platform ) {
184
184
if ( platform ) {
185
185
log . debug ( 'Packaging the \'' + platform . name + '\' app...' ) ;
186
- return Q . resolve ( generatedAppDir ) . then ( function ( rootOutputDir ) {
186
+ return Q . resolve ( rootDir ) . then ( function ( rootOutputDir ) {
187
187
return Q . ninvoke ( platform , 'package' , rootOutputDir , options ) . then ( function ( path ) {
188
188
log . info ( 'The ' + platform . name + ' app was packaged successfully!' ) ;
189
189
return Q . resolve ( path ) ;
@@ -228,7 +228,7 @@ function runApp (platformId, dir, options, callback) {
228
228
if ( platformModules && platformModules . length > 0 ) {
229
229
var platform = platformModules [ 0 ] ;
230
230
log . debug ( 'Launching the \'' + platform . name + '\' app ...' ) ;
231
- return Q . resolve ( generatedAppDir ) . then ( function ( rootOutputDir ) {
231
+ return Q . resolve ( rootDir ) . then ( function ( rootOutputDir ) {
232
232
return Q . ninvoke ( platform , 'run' , rootOutputDir , options ) . catch ( function ( err ) {
233
233
return Q . reject ( new CustomError ( 'Failed to launch the ' + platform . name + ' app.' , err ) ) ;
234
234
} ) ;
@@ -266,7 +266,7 @@ function openApp (platformId, dir, options, callback) {
266
266
if ( platformModules && platformModules . length > 0 ) {
267
267
var platform = platformModules [ 0 ] ;
268
268
log . debug ( 'Opening the \'' + platform . name + '\' app...' ) ;
269
- return Q . resolve ( generatedAppDir ) . then ( function ( rootOutputDir ) {
269
+ return Q . resolve ( rootDir ) . then ( function ( rootOutputDir ) {
270
270
return Q . ninvoke ( platform , 'open' , rootOutputDir , options ) . catch ( function ( err ) {
271
271
return Q . reject ( new CustomError ( 'Failed to open the ' + platform . name + ' app.' , err ) ) ;
272
272
} ) ;
0 commit comments