Comments (3)
Hello to all,
Just to inform that I trying by forcing some specific version of Cordova Electron like 2.0.0 and 3.0.0... with the same result. Additionally, I try by using a different path in the "ElectronSettingsFilePath" value like:
<platform name="electron"> <preference name="ElectronSettingsFilePath" value="/electron_settings.json" /> </platform>
<platform name="electron"> <preference name="ElectronSettingsFilePath" value="./electron_settings.json" /> </platform>
<platform name="electron"> <preference name="ElectronSettingsFilePath" value=".\electron_settings.json" /> </platform>
... also with the same result... and it's rare, because I also use relative paths in the Cordova config.xml to set the installer icon, for example, and, in this case it's working as expected.
I am near to think that something is wrong here, because I can't believe this "error" is present, I mean, we are talking about to set the configuration file by the "ElectronSettingsFilePath": I see this working in the past, and, probably it's working now...
So there is something wrong in my own app / configuration, but I can't figure it out... since I try several things, paths, the settings file certainly exists, etc., so, I just can't figure out what can be happened.
Any possible help or advice is really appreciated! Thanks in advance for that!
from cordova-electron.
Hello to all,
Finally I can found where is the problem! In my Cordova config.xml file, I have a couple of:
<platform name="electron">
In the first one I place the settings file path and the icons for the electron platform, and, in a second one I place the splash screen file path. When I remove the second "platform" XML tag, I can see that the settings file is now working as expected.
So for some reason Cordova Electron is "overridden" the first "platform" XML tag with the second one, which do not contain the settings file path.
It's a bit rare... because the first "platform" XML stuff contains the icons configuration, and, these are working as expected. So I am not sure why a second "platform" node specifically cause the ignoring of the settings file established in the first "platform" XML node.
Maybe this information can be useful for someone... or maybe this issue will be revised in order to see what is happening if we place a second "platform=electron" node in the Cordova config.xml file.
The point is that in my Cordova config.xml I have also a couple of "platform" nodes for the Android platform, and, apparently both of these nodes are taken and used without problems, so, maybe this must be also the expected behaviour for the case of the electron platform.
from cordova-electron.
Hello to all,
A bit more of information about this issue. I mention that I have a couple of "platform=electron" nodes in my Cordova config.xml file. Ok, if I move the "ElectronSettingsFilePath" seeting to the second "platform=electron" node, then the configuration file is also loaded / taken as expected.
So to me is like if the XML parser take the "ElectronSettingsFilePath" setting from the last "platform=electron" node: if not exists, no matter if exists in the first node, the configuration file is not loaded / taken as expected. Maybe this information can be useful in some manner!
from cordova-electron.
Related Issues (20)
- external NPM modules are not loading after building [email protected] HOT 3
- How to cordova exec ipcMain to electron
- White Screen without CLI run HOT 1
- Builds fail on macOS 12.3 (Monterey) HOT 2
- How to install keytar(Node module to manage system keychain) in cordova [email protected]?
- Unable to pass Publish options to electron-builder HOT 2
- Running 'cordova prepare electron' on an clean source control electron project with supported plugin fails to write to package.json.
- Failed to load resource: net::ERR_FILE_NOT_FOUND - app.js in www folder does not exist HOT 1
- Allow for multiple plugin results HOT 1
- Cross-platform support HOT 2
- Unable to set the custom icons HOT 1
- electron version update HOT 1
- something is wrong with cordova build electron comand
- How to add an external json file ?
- Build failing on M1 macOS Ventura 13.5.2 HOT 2
- Cordova electron is not packaging the dependencies HOT 5
- Transporter error - example of build.json HOT 2
- Cannot find module 'serialport' with serialport.io HOT 1
- I have issues when I tried to build cordova-electron HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-electron.