# Code package

# Version Type

The code package is divided into three types: Development Version, Experience 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 local development version; development version The code package can only be obtained by scanning the code; -Experimental version: The version obtained by setting the specific development version to the experimental version in the management background, each mini game can only have one trial version; -Official version: The online version is officially released, and each mini game can only have one official version;

# Package size limit

The total size of the code package cannot exceed 30M, the size of a single subpackage is not limited, and the main package does not exceed 4M. For more information about subpackages, please refer to Subpackage Loading.

# Cache and cleanup mechanism

After the code package is downloaded to the client, it will be cached so that it can be opened offline next time. The timing of the code package cleaning is dynamically calculated by the algorithm, but it can be considered that the code package will not be actively cleaned up when the phone storage space is sufficient. When the user actively deletes the mini game in the history list (dropping down the taskbar does not count), the code package will be cleaned up.

# 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, and 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
点击咨询小助手