cocos_set_wechat_subpackages
Configure WeChat mini-game subpackages to bypass the 4MB main package limit. Define asset bundles to ensure game uploads meet platform requirements.
Instructions
Configure WeChat mini-game subpackages.
Each entry must be {"name": "", "root": "assets/"}. Example: [{"name": "level1", "root": "assets/levels/world1"}, {"name": "audio", "root": "assets/audio"}]
WeChat hard-caps the main package at 4 MB; without subpackages any non-trivial game gets rejected at upload time.
Replaces the entire subpackages list (atomic). Pair with
cocos_set_bundle_config on each root folder to actually mark
them as bundles in the asset DB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| subpackages | Yes |