You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2019/04/11 11:20:11 UTC

[cordova-coho] branch master updated: Add Electron Support (#230)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-coho.git


The following commit(s) were added to refs/heads/master by this push:
     new 102b15e  Add Electron Support (#230)
102b15e is described below

commit 102b15e2569985e1562224843743a9f310724bc9
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Thu Apr 11 20:20:06 2019 +0900

    Add Electron Support (#230)
---
 src/repoutil.js    | 7 +++++++
 src/versionutil.js | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/repoutil.js b/src/repoutil.js
index 3937457..829909e 100644
--- a/src/repoutil.js
+++ b/src/repoutil.js
@@ -103,6 +103,13 @@ var platformRepos = [
         cordovaJsSrcName: 'cordova.browser.js',
         cordovaJsPaths: ['cordova-lib/cordova.js']
     }, {
+        title: 'Electron',
+        id: 'electron',
+        repoName: 'cordova-electron',
+        jiraComponentName: 'cordova-electron',
+        cordovaJsSrcName: 'cordova.electron.js',
+        cordovaJsPaths: ['cordova-lib/cordova.js']
+    }, {
         title: 'Bada',
         id: 'bada',
         repoName: 'cordova-bada',
diff --git a/src/versionutil.js b/src/versionutil.js
index 1a14fa6..2d03e12 100644
--- a/src/versionutil.js
+++ b/src/versionutil.js
@@ -115,7 +115,7 @@ exports.updateRepoVersion = function * updateRepoVersion (repo, version, opts) {
             if (fs.existsSync(path.join('template', 'cordova', 'version'))) {
                 shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('template', 'cordova', 'version'));
             }
-        } else if (repo.id === 'browser') {
+        } else if (repo.id === 'browser' || repo.id === 'electron') {
             if (fs.existsSync(path.join('bin', 'template', 'cordova', 'version'))) {
                 shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('bin', 'template', 'cordova', 'version'));
             }


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