breautek commented on issue #486:
URL: https://github.com/apache/cordova/issues/486#issuecomment-2231716220

   I think I understand now.
   
   Mixing environments is going to be a recipe for disaster. It's not something 
I'd recommend.
   
   But like I said, Cordova doesn't choose to run under wine. I've done an 
apache-cordova wide search for wine (or WSL/WSL2) and couldn't find anything.
   
   Cordova itself should operate under WSL, but you should install all the 
linux version of the tools, including a linux node, and the platform sdk for 
linux (e.g. android sdk tools for linux).
   
   Platforms usually have generated environment-specific files, so having a 
platform installed in a linux environment (like WSL) and then attempting to use 
the windows-version of the platform SDK on that project probably will not work. 
For example, android projects generated in a linux environment will use 
linux/posix file paths and windows version of the SDK will fail. Likewise an 
android project generated on a windows environment will have windows paths and 
will fail in a linux environment.
   
   If you launch windows executables from WSL, it will launch the "windows" 
application and will trip OS environment checks, so it's important to install 
the linux version of the SDKs, like using a linux nodejs build to run Cordova.
   
   I'm using the android platform for examples because it's what I'm the most 
familiar with but other platforms will likely have similar situations. If a 
project has multiple build targets (like electron) then you might need to clean 
the platform when switching environments. There is limited support for 
cross-compiling electron apps.


-- 
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.

To unsubscribe, e-mail: [email protected]

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