如题,求问官方修复的pr如何用到自己的项目?需要定制引擎之类的吗
你好,可以根据这个文档来做:
https://docs.cocos.com/creator/manual/zh/advanced-topics/engine-customization.html?h=定制
@Jno 进行到 gulp init 就进行不下去了,怎么办?
yong:cocos2d-x yong$ gulp init
[17:24:12] Using gulpfile ~/Desktop/lite/cocos2d-x/gulpfile.js
[17:24:12] Starting 'init'...
=======================================================
==> Prepare to download external libraries!
==> version file doesn't exist
==> Ready to download 'next-10.zip' from 'https://github.com/cocos-creator/cocos2d-x-lite-external/archive/next-10.zip'
Traceback (most recent call last):
File "download-deps.py", line 340, in <module>
main()
File "download-deps.py", line 335, in main
installer.run(workpath, external_path, opts.remove_downloaded, opts.force_update, opts.download_only)
File "download-deps.py", line 270, in run
self.download_zip_file()
File "download-deps.py", line 227, in download_zip_file
self.download_file()
File "download-deps.py", line 116, in download_file
u = urllib2.urlopen(self._url)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1241, in https_open
context=self._context)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661)>
[17:24:13] 'init' errored after 649 ms
[17:24:13] Error: Command failed: python download-deps.py --remove-download no
at checkExecSyncError (child_process.js:601:13)
at execSync (child_process.js:641:13)
at execSync (/Users/yong/Desktop/lite/cocos2d-x/gulpfile.js:57:5)
at Gulp.<anonymous> (/Users/yong/Desktop/lite/cocos2d-x/gulpfile.js:134:5)
at module.exports (/Users/yong/Desktop/lite/cocos2d-x/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/Users/yong/Desktop/lite/cocos2d-x/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/Users/yong/Desktop/lite/cocos2d-x/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (/Users/yong/Desktop/lite/cocos2d-x/node_modules/orchestrator/index.js:134:8)
at /usr/local/lib/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^3.7.0/index.js:72:20
at _combinedTickCallback (internal/process/next_tick.js:131:7)
然后按照文档说去手动下载 next-10.zip 并放到tools/cocos2d-console目录下重命名为creator-console-2.zip,再次运行gulp init,还是不行
再次运行gulp init,还是提示下载next-10.zip,怎么搞
如果是creator的JS引擎的话,只需要这样:

同问,同问
up up
