Creator 自定义引擎文件缺失

=======================================================
==> Prepare to download external libraries!
==> version file doesn't exist
==> Ready to download 'v23-2.zip' from 'https://github.com/cocos-creator/cocos2d-x-lite-external/archive/v23-2.zip'
==> WARNING: Couldn't grab the file size from remote, use 'zip_file_size' section in '.../engine/cocos2d-x-lite/external/config.json'
==> Start to download, please wait ...
==> Downloading finished!                                                   
==> Extracting files, please wait ...
==> Extraction done!
==> Cleaning cocos2d-x/external folder ...
==> Copying files...
==> Cleaning...
Submodule 'tools/bindings-generator' (https://github.com/cocos-creator/bindings-generator.git) registered for path 'tools/bindings-generator'
Submodule 'tools/cocos2d-console' (https://github.com/cocos-creator/cocos2d-console.git) registered for path 'tools/cocos2d-console'
Cloning into '.../engine/cocos2d-x-lite/tools/bindings-generator'...
Cloning into '.../engine/cocos2d-x-lite/tools/cocos2d-console'...
Submodule path 'tools/bindings-generator': checked out '16aee008e3b4803a8bfcdb52db43c35a8513aa90'
Submodule path 'tools/cocos2d-console': checked out '5676e135e366ca914cc280a4171c5dce52476ab1'
=======================================================
==> Prepare to download console binaries!
==> version file doesn't exist
==> Ready to download 'creator-console-2.zip' from 'https://github.com/cocos2d/console-binary/archive/creator-console-2.zip'
==> WARNING: Couldn't grab the file size from remote, use 'zip_file_size' section in '.../engine/cocos2d-x-lite/tools/cocos2d-console/config.json'
==> Start to download, please wait ...
 ==> Downloading finished!al: 45045K, Percent: 99.48%, Speed: 756.73 KB/S 
==> Extracting files, please wait ...
==> Extraction done!
==> Copying files...
==> Cleaning...
[14:04:19] Finished 'init' after 11 min
➜  cocos2d-x-lite git:(develop) ✗ 

引擎定制地址

定制了 Cocos2d-x-lite 引擎
编辑器报错了

Sorry, save failed. Cannot find simulator config.json under ../engine/cocos2d-x-lite/simulator/mac/Simulator.app/Contents/Resources/config.json

2.1 获取 Cocos2d-x-lite 引擎
如果您仅需要基于当前的版本做一些调整,那么在 Cocos Creator 内置的 Cocos2d-x-lite 引擎基础上修改就可以了。操作步骤和获取 JS 引擎一致:点击 Creator 编辑器右上方的 打开程序安装路径,然后将内置的 cocos2d-x 目录拷贝到本地其他路径

使用内置的2d-x 执行gulp init 报出如下错误

fatal: not a git repository (or any of the parent directories): .git

使用内置的 cocos2d-x 引擎执行命令行编译,需要先执行一下

git init

官方文档中有介绍:
https://docs.cocos.com/creator/manual/zh/advanced-topics/engine-customization.html?h=定制

这是从git 上面clone 下来的,提示上面的错误了是什么原因啦

似乎是模拟器编译报错了,你是拉取的哪个分支?

https://github.com/cocos-creator/cocos2d-x-lite.git

本地切换一下分支,需要和编辑器保持一致。如果使用 github desktop 下载的话,可以在这里切换一些分支版本,

命令行切换:

git checkout -b v2.2.1-release origin/v2.2.1-release