发布就报错了。
然后用新版本重新建个项目,把之前版本的代码和资源拷贝进去,还是一样的报错。
{ Error: rpk包构建失败!错误:Error: Command failed: node /Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/package/index.js /Users//build/huawei/build /Users//build/huawei/dist com.xiaoxian.nimigame.kantu /Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/res/private.pem /Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/res/certificate.pem
/Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/package/lib/build-sign-file.js:1
statSync(i);if(r.isFile()){var s=t.split(_path.sep).join(_path.posix.sep);p=_p
^
TypeError: Cannot read property ‘sep’ of undefined
at /Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/package/lib/build-sign-file.js:1:1065
at Array.forEach (native)
at parse (/Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/package/lib/build-sign-file.js:1:949)
at signRpkFile (/Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/package/lib/build-sign-file.js:1:720)
at Object. (/Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/package/lib/build-sign-file.js:1:1765)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at EventEmitter.k.on.n (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/main/ipc.js:1:5022)
at emitThree (events.js:116:13)
at EventEmitter.emit (events.js:197:7)
at Object.i.reply (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/main/ipc.js:1:2270)
at exec (/Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/build-runtime.js:278:19)
at ChildProcess.exithandler (child_process.js:224:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Socket. (internal/child_process.js:342:11)
--------------------
/Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/package/lib/build-sign-file.js:1
statSync(i);if(r.isFile()){var s=t.split(_path.sep).join(_path.posix.sep);p=_p
^
TypeError: Cannot read property ‘sep’ of undefined
at /Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/package/lib/build-sign-file.js:1:1065
at Array.forEach (native)
at parse (/Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/package/lib/build-sign-file.js:1:949)
at signRpkFile (/Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/package/lib/build-sign-file.js:1:720)
at Object. (/Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/package/lib/build-sign-file.js:1:1765)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at exec (/Applications/CocosCreator.app/Contents/Resources/builtin/huawei-runtime/build-runtime.js:278:25)
at ChildProcess.exithandler (child_process.js:224:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Socket. (internal/child_process.js:342:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at Pipe._handle.close [as _onclose] (net.js:510:12)
at then.e (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/lib/builder/index.js:1:885)
at