[SOLVED] Cocos console -s parameter

Hi,
something had broken in my eclipse and I have to run my app from console like this:

cocos run -p android

Works without any errors.

But in my project directory I have proj.android and proj.android-full directory which corresponds to free and full version of the app.

But I can’t run full version, it always run the first one. I tried:

cocos run -p android -s proj.android-full
cocos run -p android -s android-full

How can I do that?

Also when making a release version is it possible to add keystore path and password directly from command without waiting for prompt?

Anyone? As I found out -s parameter is used to specify whole project directory, not the subproject (proj.android-full in my case). I’ve also looked into build_native.py, but it’s using different tools to build an apk.

-s/--src is for specifying a src directory.
doesn’t cocos run -p android work?

cocos run -p android does work, but it always runs project located in proj.android dir. But I have a second version of the app in directory proj.android-full. But -s (or --src) doesn’t changed anything. It always runs proj.android. Back in eclipse I could easily use both.
I wanted to use eclipse as I used before, but I’ve ran into this bug: Eclipse CDT error in all projects

Maybe some hidden parameters or config file will help?

I’m still stuck! Please help :slight_smile:

I don’t know the answer. Perhaps the cocos tool isn’t flexible enough to have a project with multiple source directories instead of just proj.android

Solved. I found this missing parameter:

cocos run -p android --proj-dir proj.android-full

Don’t know why I couldn’t find it before :open_mouth: .