dlzr opened a new issue #173:
URL: https://github.com/apache/cordova-electron/issues/173


   <!--
   Please have a look at the issue templates you get when you click "New issue" 
in the GitHub UI.
   We very much prefer issues created by using one of these templates.
   -->
   
   ### Issue Type
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] Bug Report
   - [ ] Feature Request
   - [ ] Support Question
   
   ## Description
   Trying to run the helloworld cordova app in cordova-electron 2.0.0 with the 
`--nobuild` flag results in nothing happening.
   
   ### Command or Code
   ```
   ~/tmp $ cordova create helloworld
   Creating a new cordova project.
   
   ~/tmp $ cd helloworld/
   
   ~/tmp/helloworld $ cordova platform add [email protected]
   Using cordova-fetch for [email protected]
   Adding electron project...
   Creating Cordova project for cordova-electron:
        Path: /home/user/tmp/helloworld/platforms/electron
        Name: HelloCordova
   Discovered plugin "cordova-plugin-whitelist". Adding it to the project
   Installing "cordova-plugin-whitelist" for electron
   Adding cordova-plugin-whitelist to package.json
   
   ~/tmp/helloworld $ cordova run electron --nobuild
   ```
   This last command returns immediately with no app window opening.  Adding 
`--verbose` shows this:
   
   ```
   ~/tmp/helloworld $ cordova run electron --nobuild --verbose
   No scripts found for hook "before_run".
   No scripts found for hook "before_prepare".
   Checking for saved platforms that haven't been added to the project
   Platform API successfully found in: 
/home/user/tmp/helloworld/platforms/electron/cordova/Api.js
   Checking for saved plugins that haven't been added to the project
   Generating config.xml from defaults for platform "electron"
   Merging and updating files from [www, platforms/electron/platform_www] to 
platforms/electron/www
     copy  platforms/electron/platform_www/cdv-electron-settings.json 
platforms/electron/www/cdv-electron-settings.json (updated file)
     copy  platforms/electron/platform_www/config.xml 
platforms/electron/www/config.xml (updated file)
     delete platforms/electron/www/manifest.json (no source)
     delete platforms/electron/www/package.json (no source)
   This app does not have icons defined
   This app does not have splash screens defined.
   Creating new manifest file in => undefined
   No scripts found for hook "after_prepare".
   No scripts found for hook "before_deploy".
   No scripts found for hook "after_run".
   ```
   Still, the app isn't started.
   
   For the record, the same steps work as expected with [email protected].
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   Debian GNU/Linux 10 (buster) amd64
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   [email protected]
   [email protected]
   [email protected]
   
   ## Checklist
   <!-- Please check the boxes by putting an `x` in the `[ ]` like so: `[x]` -->
   
   - [x] I searched for already existing GitHub issues about this
   - [x] I updated all Cordova tooling to their most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to