You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/07/15 19:05:30 UTC
[GitHub] [cordova-electron] jammer99 opened a new issue #159: Cordova flag --buildConfig does not seem to work
jammer99 opened a new issue #159:
URL: https://github.com/apache/cordova-electron/issues/159
# Bug Report
## Problem
`cordova build` command does not accept `--buildConfig` flag for electron
```
--buildConfig....................... Use the specified build configuration
instead of default build.json
```
### What is expected to happen?
The configuration must be loaded from the given config file.
### What does actually happen?
```
user@pc ~ % cordova build electron --buildConfig=buildConfig.json --release
Cannot find module 'buildConfig.json'
```
## Information
<!-- Include all relevant information that might help understand and reproduce the problem -->
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
Create a file named `buildConfig.json` and put all build flags in that file, remove `build.json` if any. Run the following commands
```
cordova platform add electron@nightly
cordova build electron --buildConfig=buildConfig.json --release
```
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
Environment : MacOS
Platform : Cordova Electron building for Mac and windows on Mac
### 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.
-->
OS : MacOS 10.15.5
Cordova : 9.0.0 (cordova-lib@9.0.1)
Cordova-electron : nightly build
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to 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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-electron] erisu commented on issue #159: Cordova flag --buildConfig does not seem to work
Posted by GitBox <gi...@apache.org>.
erisu commented on issue #159:
URL: https://github.com/apache/cordova-electron/issues/159#issuecomment-659116435
@jammer99
The current workaround solution is either:
1. Provide the full file path to the build configuration json. E.g. `/path/to/buildConfig.json`
2. Rename the file too `build.json` and do not set the `--buildConfig`.
I believe I see what might be happening and will fix it later today.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org