Thank you for your response. I have based my scripts onthis documentation. I can run it locally, but problems are that it gets stuck as the screenshots show in the windows docker container.
If you have any ideas how to get past this step in the build, then please let me know
Thanks a lot in advance!
To be able to pass the language popup I applied a settings.json with english selected in it into C:\Path_to_user\.CocosCreator\settings.json.
What else do you suggest I need to do? I have read the documentation and also tried with --force, but no luck. Always gets stuck on the same place unfortunately.
Very thankful if you could assist me in getting this working!
@zhiming_wu A bit confused also about the build process for example C:\CocosCreator\2.3.3\resources\app.asar\editor\share\assets\meta\fbx.js
doesn’t even exist, but when you run the build it somehow does exist during the build. I cannot find a single fbx.js file locally even?
I got past this build step by removing c:\CocosCreator\2.3.3\resources\static\default-assets\model\primitives.fbx
and c:\CocosCreator\2.3.3\resources\static\default-assets\model\primitives.fbx.meta
But this is not optimal of course, just trying to understand why it cannot continue the build process.
After that it continues until:
But of course I want to get it to work without removing some of Cocos Creator engine files
At this stage it has not yet build the game. This is what it has done:
worker is an electron window, and if Creator have not GUI permission,Creator can not open the window , and it cannot continue build project too, we will try to reload worker after 10s if the worker window is not open correctly.
When I run it locally I can build the game without any window opening, it just runs in the terminal nicely and gets the job done. I’ve realized that it wants to open the language selection dialog if you haven’t setup settings.json file with a language selection, but other than that I don’t know why it needs to open the editor, since it builds fine for me locally.
Am I missing a config or something to have it build without opening the editor itself?
When you build with command line, Creator will open too, we open an invisible window, Creator can not build the project without electron now. Because creator needs load plugins event if build with command, so Creator needs GUI permission to allow it open Electron window.
Wonder if we together with Cocos Creator team could figure out a way to create a Docker container (linux if possible) to build the game with. I’ve seen some older threads where people have succeeded to build it on top of linux. I’m unsure how exactly, but if it has been done it is probably possible.
I think cocos creator could benefit from this hugely and would probably not be too big of a task compared to all the benefits for the entire community!