fix: 修正 macOS 更新问题

This commit is contained in:
purocean
2021-07-05 17:58:16 +08:00
parent 5e1743b076
commit a74345cb42
+3 -1
View File
@@ -134,7 +134,9 @@ export function autoCheckForUpdates () {
app.whenReady().then(() => {
init(() => {
// 立即升级,退出程序
app.exit(0)
setTimeout(() => {
app.exit(0)
}, process.platform === 'darwin' ? 3500 : 0)
})
setTimeout(() => {