cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zasp...@apache.org
Subject [29/37] cordova-ubuntu git commit: Added device flag in build for building for phone. Desktop otherwise.
Date Mon, 15 Dec 2014 13:33:18 GMT
Added device flag in build for building for phone. Desktop otherwise.


Project: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/commit/3b7bbe49
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/tree/3b7bbe49
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/diff/3b7bbe49

Branch: refs/heads/master
Commit: 3b7bbe49ba8dd8d07053e80f57837bc05f01bfbc
Parents: cd66741
Author: Jean-Francois Moy <jeanfrancois.moy@gmail.com>
Authored: Tue Nov 25 14:43:52 2014 +0000
Committer: Jean-Francois Moy <jeanfrancois.moy@gmail.com>
Committed: Tue Nov 25 14:43:52 2014 +0000

----------------------------------------------------------------------
 bin/templates/project/cordova/build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/blob/3b7bbe49/bin/templates/project/cordova/build
----------------------------------------------------------------------
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 root = path.resolve();
 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);
 });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message