Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add br brotli for Wechat and douyin Mini games #18261

Open
iwae opened this issue Jan 29, 2025 · 0 comments
Open

add br brotli for Wechat and douyin Mini games #18261

iwae opened this issue Jan 29, 2025 · 0 comments
Labels
Feature Request Needs Triage Needs to be assigned by the team

Comments

@iwae
Copy link
Contributor

iwae commented Jan 29, 2025

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

@iwae iwae added Feature Request Needs Triage Needs to be assigned by the team labels Jan 29, 2025
@iwae iwae changed the title add br zip for Wechat and Tiktok Mini game add br brotli for Wechat and douyin Mini games Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

1 participant