Version types
Code packages for mini games are categorized into three types: Development, Preview, and Release.
Development: The version that is accessed by scanning a QR code generated after tapping Preview in the IDE. Each mini game can have multiple development versions, but each developer can only have one local development version. Development version code packages can only be accessed via QR code scanning.
Preview: Created by setting the uploaded version from the IDE as the Preview version in the console, and then scanning the generated QR code to open it. Each mini game can have only one Preview version.
Release: The officially released version available online. Each mini game can have only one release version.
Package size limit
The total size of the code package must not exceed 20 MB. There is no size limit for individual sub-packages, but the main package must not exceed 4 MB. For more information on sub-packaging, please refer to Subpackage Loading. Caching and cleaning mechanism
Once downloaded to the client, code packages are cached to allow offline access. The timing for clearing code packages is dynamically calculated by an algorithm, but generally, code packages will not be actively cleared as long as there is sufficient storage space on the device. Active cleaning:
If a user actively deletes a mini game from the history list (deleting from the taskbar does not count), the code package will be cleared.
Users can clear the cache via Settings > General > Storage.
File type
In the project directory, the following files will be compiled and thus cannot be directly accessed after uploading: *.js
, game.json
. Additionally, only files with extensions on the allowlist can be uploaded. Files not on the allowlist can be accessed in the development tools but cannot be uploaded. The specific allowlist 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