在最开始升级卡特琳娜之后,使用electron-builer 打包就各种报错(报错信息已无法找到),后各方找资料之后,知道了这是卡特琳娜不再支持32位应用程序了,而electron-builer 是使用32位进行打包的。

得,等吧。

之后将 electron-builer 更新到 22.2.1 之后,mac版本终于成功的打出来了,然后 electron-builer --win

Boooooooooooooooooooom!

  ⨯ Exit code: ENOENT. spawn prlctl ENOENT  stackTrace=
                                                        Error: Exit code: ENOENT. spawn prlctl ENOENT
                                                            at /Users/hcr/Desktop/git/hcr_dataEditor/app/node_modules/builder-util/src/util.ts:125:16
                                                            at exithandler (child_process.js:301:5)
                                                            at ChildProcess.errorhandler (child_process.js:313:5)
                                                            at ChildProcess.emit (events.js:188:13)
                                                            at Process.ChildProcess._handle.onexit (internal/child_process.js:252:12)
                                                            at onErrorNT (internal/child_process.js:421:16)
                                                            at process.internalTickCallback (internal/process/next_tick.js:72:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hcr_data_editor@0.0.1 build:win: `node .electron-vue/build.js && ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ electron-builder --win`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the hcr_data_editor@0.0.1 build:win script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/hcr/.npm/_logs/2019-11-12T02_12_00_985Z-debug.log

成了,继续找资料吧,后面在 electron-builer issets 里面找到 https://github.com/electron-userland/electron-builder/issues/4305

得,wine没有64位的,那咋办嘛。

没辙, docker启动