You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/03/05 10:40:42 UTC

[cordova-mobile-spec] branch master updated: Add Electron Support (#199)

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

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


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

commit b465e8ff83da95ce895736c312da4d351e5fb0be
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Tue Mar 5 19:40:38 2019 +0900

    Add Electron Support (#199)
    
    ### Platforms affected
    none
    
    
    ### Motivation and Context
    Support for creating mobilespec builds for Electron Release process.
    
    ### Description
    - Only added the necessary flags
    
    ### Testing
    None
    
    ### Checklist
    
    - [ ] I've run the tests to see all new and existing tests pass
    - [ ] I added automated test coverage as appropriate for this change
    - [ ] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`)
    - [ ] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/))
    - [ ] I've updated the documentation if necessary
---
 createmobilespec/createmobilespec.js | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/createmobilespec/createmobilespec.js b/createmobilespec/createmobilespec.js
index a99ffb7..e1e547f 100755
--- a/createmobilespec/createmobilespec.js
+++ b/createmobilespec/createmobilespec.js
@@ -101,7 +101,10 @@ var top_dir =             process.cwd() + path.sep,
                                               "config": ["res", "xml"] },
                             "browser": { "bin": ["cordova-browser"],
                                               "www": ["www"],
-                                              "config": ["www"] },   
+                                              "config": ["www"] },
+                            "electron": { "bin": ["cordova-electron"],
+                                              "www": ["www"],
+                                              "config": ["www"] },
                             "ios":          { "bin": ["cordova-ios"],
                                               "www": ["www"],
                                               "config": ["CUSTOM"] },
@@ -113,12 +116,13 @@ var top_dir =             process.cwd() + path.sep,
     argv = optimist.usage("\nUsage: $0 PLATFORM... [--help] [--plugman] [--link] [--global] [--globalplugins] [--plugins=\".\\myPluginDir\"] [--skipjs] [--skiplink] [--variable VAR=\"value\"] [directoryName]\n" +
                           "A project will be created with the mobile-spec app and all the core plugins.\n" +
                           "At least one platform must be specified. See the included README.md.\n" +
-                          "\tPLATFORM: [--<android|ios|windows|osx>]\n" +
+                          "\tPLATFORM: [--<android|browser|electron|ios|osx|windows>]\n" +
                           "")
                    .boolean("help").describe("help", "Shows usage.")
                    .boolean("debug").describe("debug", "Debug logging.")
                    .boolean("android").describe("android", "Add Android platform.")
                    .boolean("browser").describe("browser", "Add Browser platform.")
+                   .boolean("electron").describe("electron", "Add Electron platform.")
                    .boolean("ios").describe("ios", "Add iOS platform.")
                    .boolean("osx").describe("osx", "Add osx platform (macOS).")
                    .boolean("windows").describe("windows", "Add Windows (universal) platform.")
@@ -205,6 +209,7 @@ if (argv.help) { optimist.showHelp(); quit(); }
 if (argv.android) { platforms.push("android"); }
 if (argv.ios) { platforms.push("ios"); }
 if (argv.browser) { platforms.push("browser"); }
+if (argv.electron) { platforms.push("electron"); }
 if (argv.windows) { platforms.push("windows"); }
 if (argv.osx) {platforms.push("osx");}
 


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