electron4 升级 electron 7
踩坑中
- win 4.0.0 - 7.1.10
- mac 4.2.8 - 7.1.10
区别
- protocol 不再需要callback(第三个回调)
- protocol.registerStandardSchemes -> protocol.registerSchemesAsPrivileged
- dialog API 从 callback 改为 Promise
- systemPreferences -> nativeTheme
self signed certificate in certificate chain 报错
set NODE_TLS_REJECT_UNAUTHORIZED=0
其他注意事项
不少设计原生的模块无法在高于electron4的版本上使用
例如 realm、electron-vibrancy