Skip to content

Code package

Version type

Code packages are divided into three types: development version, trial version, and official version:

  • Development version: the version generated by each developer clicking "Preview" during the development process. Each mini-game can have multiple development versions, and each developer can only have one development version locally; the development version code package can only be obtained by scanning the code.
  • Trial version: the version obtained by setting a specific development version to a trial version in the management background. Each mini-game can only have one trial version.
  • Official version: the version officially released online. Each mini-game can only have one official version.

Package size limit

The total size of the code package cannot exceed 20M, there is no size limit for a single sub-package, and the main package does not exceed 4M. For more information about sub-packages, please refer toPackage Loading

Cache and cleanup mechanism

After the code package is downloaded to the client, it will be cached for the next offline opening. The timing of code package cleanup is dynamically calculated by the algorithm, but it can be assumed that if the mobile phone storage space is sufficient, the code package will not be actively cleaned up. Active cleanup:

  • When the user actively deletes the mini-game in the history list (deletion by pulling down the taskbar is not counted), the code package will be cleaned up.
  • Users can clear the cache in Settings-General-Storage.

File type

In the project directory, the following files will be compiled, so they cannot be directly accessed after uploading: *.js, game.json. In addition, only files with suffixes in the whitelist can be uploaded. Files not in the whitelist can be accessed in the development tool, but cannot be uploaded. The specific whitelist list is as follows:

1.png

2.jpg

3.jpeg

4.gif

5.svg

6.js

7.json

8.cer

9.obj

10.dae

11.fbx

12.mtl

13.stl

14.3ds

15.mp3

16.pvr

17.wav

18.plist

19.ttf

20.fnt

21.gz

22.ccz

23.m4a

24.mp4

25.bmp

26.atlas

27.swf

28.ani

29.part

30.proto

31.bin

32.sk

33.mipmaps

34.txt

35.zip

36.tt

37.map

38.ogg

39.silk

40.dbbin

41.dbmv

42.etc

43.lmat

44.lm

45.ls

46.lh

47.lani

48.lav

49.lsani

50.ltc

51.aac

52.astc

53.br

54.csv

55.cur

56.dat

57.dds

58.glb

59.gltf

60.ico

61.ktx

62.lmani

63.lml

64.pkm

65.prefab

66.scene

67.skel

68.wasm

69.xml