Cocos Code IDE can't generate an .exe?

Hello! I’ve made a game using cocos2d - JS 3.0 final and cocos code IDE, I’ve been testing it with the “Debug win32” button, and it works normally. But the problem is, when I try the “Build Runtime” option, the IDE generates a .exe archive that needs to be communicating with a server. I need a standalone EXE, so I tried using Visual Studio 2012 to generate the file, got only a black screen. So, now that I’ve run out of options I’ve come to bother you guys another time, sorry.

Am I doing something wrong? Or is there something I am missing in the process?

(PS: I’ve created the project using the IDE)

Well, I’ve found a solution. My way for building the .exe is:
-Open the Visual Studio project Cocos Code IDE generated;
-Switch the options bar from “Debug” to “Release”;
-Run “Build Solution”;
-If you’re having the same problem I had, go into the folder VS generated, cut all the files from inside the “Resources” folder and paste them on the root;

And that’s it! The black screen problem was only a “missing reference” error. And now I use only Visual Studio for generating the .exe.

I hope this post can help, thanks for your attention.

1 Like