You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2015/03/27 15:12:36 UTC

cordova-coho git commit: CB-8760 Added support for updating 'windows' and 'browser' platform versions (close #67)

Repository: cordova-coho
Updated Branches:
  refs/heads/master 5a07ec0c7 -> 8f3bc69d8


CB-8760 Added support for updating 'windows' and 'browser' platform versions (close #67)


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/8f3bc69d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/8f3bc69d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/8f3bc69d

Branch: refs/heads/master
Commit: 8f3bc69d86efc1ef1f14e61707e2eb11da482432
Parents: 5a07ec0
Author: Tim Barham <ti...@microsoft.com>
Authored: Fri Mar 27 14:51:10 2015 +1000
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Mar 27 10:12:07 2015 -0400

----------------------------------------------------------------------
 src/platform-release.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/8f3bc69d/src/platform-release.js
----------------------------------------------------------------------
diff --git a/src/platform-release.js b/src/platform-release.js
index fc6e50c..0fa643b 100644
--- a/src/platform-release.js
+++ b/src/platform-release.js
@@ -127,10 +127,12 @@ function *updateRepoVersion(repo, version) {
             shelljs.sed('-i', /VERSION.*=.*/, 'VERSION="' + version + '"', path.join('bin', 'templates', 'scripts', 'cordova', 'version'));
         } else if (repo.id == 'blackberry') {
             shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('bin', 'templates', 'project','cordova', 'lib', 'version.js'));
-        } else if (repo.id == 'firefoxos') {
+        } else if (repo.id == 'firefoxos' || repo.id == 'browser') {
             shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('bin', 'templates', 'project','cordova', 'version'));
         } else if (repo.id == 'ubuntu') {
             shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('bin', 'build', 'version'));
+        } else if (repo.id == 'windows') {
+            shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('template', 'cordova', 'version'));
         }
         shelljs.config.fatal = false;
         if (!(yield gitutil.pendingChangesExist())) {


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