Added device flag in build for building for phone. Desktop otherwise.
diff --git a/bin/templates/project/cordova/build b/bin/templates/project/cordova/build
index bcee390..df00d59 100755
--- a/bin/templates/project/cordova/build
+++ b/bin/templates/project/cordova/build
@@ -28,9 +28,12 @@
var www = path.join(root, 'www');
check_reqs(function () {
- var argv = require('optimist').boolean(['verbose']).string(['framework']).argv;
+ var argv = require('optimist').boolean(['verbose', 'device']).string(['framework']).argv;
if (argv.verbose) {
require('./lib/config').verboseMode();
}
- return build(root, PLATFORMS.ALL, false, undefined, argv.framework, false);
+
+ var platform = (argv.device) ? PLATFORMS.PHONE : PLATFORMS.DESKTOP;
+
+ return build(root, platform, false, undefined, argv.framework, false);
});