cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
8.23k stars 1.94k forks source link

Issue when compiling custom engine using command line #16271

Open dnva89 opened 1 year ago

dnva89 commented 1 year ago

Cocos Creator version

3.6.3, 3.7.2, 3.7.3

System information

Mac OS

Issue description

Hello Cocos team, Could you help me on compiling engine using publishing command line ?

  1. when i use the param "--engine" the native engine is not recompiled.
  2. when i set the engine path in project and use command line (without param "--engine"). i got this error: image

*Note: for the solution 2, i used it from cocos v3.4.2 and got no issue.

Relevant error log output

No response

Steps to reproduce

Try to build cocos engine using command line

Minimal reproduction project

No response

minggo commented 1 year ago

Could you please describe what you did step by step? Thanks.

dnva89 commented 1 year ago

@minggo i mean could you please provide document how to publish a game with a customized engine on cocos creator 3.6.3, it seems that the param --engine is not working correctly

minggo commented 1 year ago

Got it, I will ask somebody to check if the command is exported to developers. Can I know why don't you use IDE, such as, Xcode/VS to compile the project? Or just click compile button in cocos creator editor?

jareguo commented 1 year ago

Please follow the method inside https://docs.cocos.com/creator/manual/en/advanced-topics/engine-customization.html to customize the engine. If you need to do an editor build from the command line, you can configure the custom engine in the editor and then perform a regular command line project build.