Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/cocos/cocos-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKylinGithub committed Nov 11, 2024
2 parents 7096fe6 + a2f3c85 commit 6bc4439
Show file tree
Hide file tree
Showing 10 changed files with 691 additions and 28 deletions.
20 changes: 20 additions & 0 deletions versions/2.4/en/publish/subpackage.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,26 @@ At present, the size of the WeChat Mini Game subpackage has following restrictio

Please refer to the [WeChat Subpackage Loading](https://developers.weixin.qq.com/minigame/en/dev/guide/base-ability/subPackage/useSubPackage.html) documentation for details.

## ByteDance Mini Game

When building for the ByteDance Mini Game, the configuration of the Asset Bundle will be automatically generated into the `game.json` configuration file of the ByteDance Mini Games release package directory according to the rules.

![profile](subpackage/profile.png)

For the specific property meanings in game.json, you can refer to the documentation:[ByteDane Mini Game Configurition](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/framework/mini-game-configuration/).

### Subpackage Limit

Currently, the size of the WeChat Mini Game subpackage has following restrictions:

- The size of all subpackage of the entire Mini Game can not exceed 20MB​
- The main package size can not exceed 4MB
- The size of a single subpackage can not exceed 20MB

> The ByteDance Mini Game Open Data Context is similar to the subpackage, which can not exceed a size of 4MB.
For more details, pelease refer to:[ByteDance Mini Game Subpackage](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/framework/subpackages/introduction).

## vivo Mini Games

When building for the vivo Mini Game, the configuration of the Asset Bundle will be automatically generated into the **manifest.json** configuration file in the `qgame/src` directory of the vivo Mini Game release package according to the rules.
Expand Down
19 changes: 19 additions & 0 deletions versions/2.4/zh/publish/subpackage.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,25 @@ Asset Bundle 是以 **文件夹** 为单位进行配置的。当我们在 **资

具体请参考 [微信小游戏分包加载官方文档](https://developers.weixin.qq.com/minigame/dev/guide/base-ability/subPackage/useSubPackage.html)

## 抖音小游戏

在抖音小游戏的构建中,Asset Bundle 的配置也会按照规则自动生成到抖音小游戏发布目录下的 **game.json** 配置文件中。
![profile](subpackage/profile.png)

**game.json** 中具体的字段含义,可以参考文档:[抖音小游戏配置](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/framework/mini-game-configuration/)

### 分包大小限制

目前抖音小游戏分包大小有以下限制:

- ​小游戏整体包(小游戏包整个目录)大小不超过 20MB;​
- 单个主包不超过 4MB;​
- 单个分包大小不超过 20MB。

> 抖音小游戏开放数据域文件类似子包,该文件 / 目录的大小不超过 4MB。​
详情请参考文档:[抖音小游戏分包加载](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/framework/subpackages/introduction)

## vivo 小游戏

在 vivo 小游戏的构建中,Asset Bundle 的配置也会按照规则自动生成到 vivo 小游戏发布包 `qgame/src` 目录下的 **manifest.json** 配置文件中。
Expand Down
20 changes: 20 additions & 0 deletions versions/3.8/en/editor/publish/subpackage.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,26 @@ Currently, the size of the WeChat Mini Game subpackage has following restriction

Please refer to the [WeChat Mini Game Subpackage Loading](https://developers.weixin.qq.com/minigame/en/dev/guide/base-ability/subPackage/useSubPackage.html) documentation for details.

## ByteDance Mini Game

When building for the ByteDance Mini Game, the configuration of the Asset Bundle will be automatically generated into the `game.json` configuration file of the ByteDance Mini Games release package directory according to the rules.

![profile](subpackage/profile.png)

For the specific property meanings in game.json, you can refer to the documentation:[ByteDane Mini Game Configurition](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/framework/mini-game-configuration/).

### Subpackage Limit

Currently, the size of the WeChat Mini Game subpackage has following restrictions:

- The size of all subpackage of the entire Mini Game can not exceed 20MB​
- The main package size can not exceed 4MB
- The size of a single subpackage can not exceed 20MB

> The ByteDance Mini Game Open Data Context is similar to the subpackage, which can not exceed a size of 4MB.
For more details, pelease refer to:[ByteDance Mini Game Subpackage](https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/framework/subpackages/introduction).

## vivo Mini Games

When building for the vivo Mini Game, the configuration of the Asset Bundle will be automatically generated into the `manifest.json` configuration file in the `vivo-mini-game/src` directory of the vivo Mini Game release package according to the rules.
Expand Down
Loading

0 comments on commit 6bc4439

Please sign in to comment.