Cocos Trial ZIP File Packaging Instructions

Publish Time:2024-12-01

1. Confirm Normal Operation

Select "Run in Browser" in the Cocos Creator editor

image.png

Confirm that the trial play runs normally from start to finish in the browser

image.png

2. Build and Publish

2.1 Entry and Parameter Description

Entry:

In Cocos Creator menu bar, select [Project] - [Build and Publish]

Parameters:

[Game Name] and [Build Path] can be customized

[Platform] select Web Mobile

[Included Scenes] check all

[Inline All SpriteFrames] check

[Device Orientation] select according to actual needs, landscape for horizontal, portrait for vertical, auto for both;

image.png

Note:

After confirming the above parameters, click [Build Path] - [Open]

If a popup appears as shown in the image, it means the project has been built before. To ensure the build is for the latest project, it's recommended to delete the folder in the build path (the build folder name in the image);

If no popup appears, proceed directly to the next build step

image.png

2.2 Build

Click [Build], when the progress bar status shows complete, it means the build is finished;

image.png

3. Compress to ZIP

Open the build path folder from the [Build], find the successfully built files, and convert them to zip format. The successfully compressed zip file

image.png

image.png