1 根据文档 --build 后可以不跟参数,会使用之前配置好的参数
/Applications/CocosCreator/Creator/3.5.2/CocosCreator.app/Contents/MacOS/CocosCreator --project $(pwd) --build
执行后报错:然后卡死
[Package] importer@1.0.0 enable
[Package] im-plugin@3.0.5 enable
TypeError: setting.args.build.split is not a function
at /Applications/CocosCreator/Creator/3.5.2/CocosCreator.app/Contents/Resources/app.asar/index.js:1:1021
init cacheTimerList {}
2 根据文档 --build scenes可以为空。会构建全部场景
$ /Applications/CocosCreator/Creator/3.5.2/CocosCreator.app/Contents/MacOS/CocosCreator --project $(pwd) --build 'md5Cache=true;outputName=web-mobile;mainBundleCompressionType=merge_all_json;platform=web-mobile;buildPath=project://build;replaceSplashScreen=true;name=NewProject55;skipCompressTexture=true'
building...100.00% 2022-7-7 15:45 Build success in 11354 ms!
TypeError: Cannot read property 'webContents' of null
at Object.sendToWin (/Applications/CocosCreator/Creator/3.5.2/CocosCreator.app/Contents/Resources/app.asar/node_modules/@base/electron-base-ipc/dist/browser.ccc:1:1611)
at Object.sendToWin (/Applications/CocosCreator/Creator/3.5.2/CocosCreator.app/Contents/Resources/app.asar/node_modules/@base/electron-base-ipc/dist/index.js:1:355)
at Object.broadcast (/Applications/CocosCreator/Creator/3.5.2/CocosCreator.app/Contents/Resources/app.asar/node_modules/@editor/creator/dist/message/browser/index.ccc:1:2516)
at Object.broadcast (/Applications/CocosCreator/Creator/3.5.2/CocosCreator.app/Contents/Resources/app.asar/node_modules/@editor/creator/dist/message/index.ccc:1:736)
at Item.reset (/Applications/CocosCreator/Creator/3.5.2/CocosCreator.app/Contents/Resources/app.asar/builtin/asset-db/dist/browser/worker/tasks.ccc:1:4504)
at Manager.reset (/Applications/CocosCreator/Creator/3.5.2/CocosCreator.app/Contents/Resources/app.asar/node_modules/v-dependence/classify/manager.js:118:20)
at Manager.reset (/Applications/CocosCreator/Creator/3.5.2/CocosCreator.app/Contents/Resources/app.asar/node_modules/v-dependence/classify/manager.js:126:18)
好像是构建成功了。但是最后报了一个错