Time for action – publishing the game with the Cocos IDE
In order to build and publish the game, we'll need to tell the IDE a few things. I'll show you how to publish the game for Android, but the steps are very similar for any of the other targets:
- First, let's tell the IDE where to find the Android SDK, NDK, and ANT, just as we did when we installed the Cocos2d-x console. In the IDE, open the Preferences panel. Then, under Cocos, enter the three paths just like we did before (remember that for ANT, you need to navigate to its
bin
folder). - Now, in order to build the project, you need to select the fourth button at the top of the IDE (from the left-hand side), or right-click on your project and select Cocos Tools. You'll have different options available depending on which stage you are at in the deployment process.
First, the IDE needs to add the native code support, and then it builds the project inside a folder called frameworks (it will contain an iOS, Mac OS...