Build Cocos WeChat Game
cocos_local_build_wechatgameBuild a WeChat Mini Game from a Cocos Creator project on your local machine. Specify a build config file or provide raw build options.
Instructions
Run Cocos Creator command-line build for the wechatgame platform using a configPath or raw build options.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectRoot": "<projectRoot>"
},
"name": "cocos_local_build_wechatgame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | ||
| logDest | No | Optional Cocos build log file path. | |
| timeoutMs | No | ||
| configPath | No | Build config JSON path created by cocos_local_create_wechat_build_config. | |
| creatorPath | No | ||
| projectRoot | Yes | ||
| buildOptions | No | Raw Cocos --build option string. Overrides configPath when provided. |