Open rohitagre opened 4 years ago
cordova build command does not accept --buildConfig flag for electron
cordova build
--buildConfig
--buildConfig....................... Use the specified build configuration instead of default build.json
https://cordova.apache.org/docs/en/latest/reference/cordova-cli/#cordova-build-command
The configuration must be loaded from the given config file.
user@pc ~ % cordova build electron --buildConfig=buildConfig.json --release Cannot find module 'buildConfig.json'
Create a file named buildConfig.json and put all build flags in that file, remove build.json if any. Run the following commands
buildConfig.json
build.json
cordova platform add electron@nightly cordova build electron --buildConfig=buildConfig.json --release
Environment : MacOS Platform : Cordova Electron building for Mac and windows on Mac
OS : MacOS 10.15.5 Cordova : 9.0.0 (cordova-lib@9.0.1) Cordova-electron : nightly build
@jammer99
The current workaround solution is either:
/path/to/buildConfig.json
I believe I see what might be happening and will fix it later today.
Bug Report
Problem
cordova build
command does not accept--buildConfig
flag for electronhttps://cordova.apache.org/docs/en/latest/reference/cordova-cli/#cordova-build-command
What is expected to happen?
The configuration must be loaded from the given config file.
What does actually happen?
Information
Command or Code
Create a file named
buildConfig.json
and put all build flags in that file, removebuild.json
if any. Run the following commandsEnvironment, Platform, Device
Environment : MacOS Platform : Cordova Electron building for Mac and windows on Mac
Version information
OS : MacOS 10.15.5 Cordova : 9.0.0 (cordova-lib@9.0.1) Cordova-electron : nightly build
Checklist