Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit 3043e84

Browse files
author
BMartin2013
committed
replaced generatedApp dir with rootDir
1 parent 13daf53 commit 3043e84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/projectBuilder.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function packageApps (platforms, dir, options, callback) {
183183
var tasks = platformModules.map(function (platform) {
184184
if (platform) {
185185
log.debug('Packaging the \'' + platform.name + '\' app...');
186-
return Q.resolve(generatedAppDir).then(function(rootOutputDir) {
186+
return Q.resolve(rootDir).then(function(rootOutputDir) {
187187
return Q.ninvoke(platform, 'package', rootOutputDir, options).then(function (path) {
188188
log.info('The ' + platform.name + ' app was packaged successfully!');
189189
return Q.resolve(path);
@@ -228,7 +228,7 @@ function runApp (platformId, dir, options, callback) {
228228
if (platformModules && platformModules.length > 0) {
229229
var platform = platformModules[0];
230230
log.debug('Launching the \'' + platform.name + '\' app ...');
231-
return Q.resolve(generatedAppDir).then(function(rootOutputDir) {
231+
return Q.resolve(rootDir).then(function(rootOutputDir) {
232232
return Q.ninvoke(platform, 'run', rootOutputDir, options).catch(function (err) {
233233
return Q.reject(new CustomError('Failed to launch the ' + platform.name + ' app.', err));
234234
});
@@ -266,7 +266,7 @@ function openApp (platformId, dir, options, callback) {
266266
if (platformModules && platformModules.length > 0) {
267267
var platform = platformModules[0];
268268
log.debug('Opening the \'' + platform.name + '\' app...');
269-
return Q.resolve(generatedAppDir).then(function(rootOutputDir) {
269+
return Q.resolve(rootDir).then(function(rootOutputDir) {
270270
return Q.ninvoke(platform, 'open', rootOutputDir, options).catch(function (err) {
271271
return Q.reject(new CustomError('Failed to open the ' + platform.name + ' app.', err));
272272
});

0 commit comments

Comments
 (0)