Zip and release games on original platforms

Open document/constructing release in the main menu and the constructing release window.

Currently, there are five original platforms, which include: Cocos Runtime, Android, iOS, Mac and Windows. The options of release games on Mac and Windows will only appear in concerning operating systems.

native platform

Configure a Package Name

An input field named package name will appear in the constructing release window after selecting an original platform, into which you can input the package name of your game (also called Package Name or Bundle ID). The package name is usually arranged in the reverse order of the product's website url, such as: com.mycompany.myproduct.

Only numbers, letters and underscores can be included in the package name. Besides, the last section of package name should start with a letter, but not an underline or a number.

package name

Construct an Original Project

After selecting the release platform and setting up the package name and initial scene, the project can now be constructed. Click the construct button on the bottom right corner, and start constructing workflow.

build progress

When compiling scripts and zipping resources, a progress bar will display on the top of the window. After the progress bar has reached 100%, please continue to wait unitl the construction of the project in console is finished. If it's successful, the diary as showed below will display:

Built to "/myProject/tutorial-blackjack/build/tutorial-blackjack" successfully

Next, you can choose to directly open the original preview provided by Cocos Creator, or manually open the constructed original project in IDE of corresponding platform for further preview, adjustment and release.

Direct Preview

Click the preview button on the bottom right corner, you can preview games of original platforms via the default method provided by Cocos Framework.

preview

On Mac/iOS/Windows platforms, Cocos Simulator will be used to preview the game on the desktop. While on Android platform, you can preview only after connecting your computer with smartphone via USB port and opening USB test on your computer.

After clicking preview, a part of the constructing work will be continued, the real time progress of which will be seen on the console.

Use an Original Project

open project

Click the open button near the release path, the constructing release path will be opened in the document manager of operating system.

jsb of this path includes all the original constructing projects.

native projects

The red frames in the picture indicate projects of different original platforms. Next, only by using IDE(such as: Xcode,Eclipse,Visual Studio) that corresponds to the original platform to open these projects, can you make further operations like compilation, preview and release. For the usage instructions for original platform's IDE, please search related information on your own, which will not be discussed in detail here.