Skip to content

add br brotli for Wechat and douyin Mini games #18261

Open
@iwae

Description

Use Case

to use brotli could both save crack issue and size issue

Problem Description

as we know, a lot minigames' assets have been cracked, and also 3d game requests smaller size as well

Proposed Solution

Image
both wechat and douyin/ other mini game platforms support br unzip in native
https://developers.weixin.qq.com/minigame/dev/api/file/FileSystemManager.readCompressedFileSync.html#%E5%8F%82%E6%95%B0

https://github.com/EtherDream/mini-program-pack

How it works

cocos can use nodejs br to zip the bundle and unzip with these features

Alternatives Considered

add br for script as well

Additional Information

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions