feat: updates

This commit is contained in:
qier222 2023-02-05 03:36:33 +08:00
parent ccebe0a67a
commit 9a52681687
No known key found for this signature in database
37 changed files with 160 additions and 55332 deletions

View file

@ -11,7 +11,8 @@ import { createTaskbar, Thumbar } from './windowsTaskbar'
import { createMenu } from './menu'
import { isDev, isWindows, isLinux, isMac, appName } from './env'
import store from './store'
import './appServer/appServer'
import initAppServer from './appServer/appServer'
import { initDatabase } from './prisma'
class Main {
win: BrowserWindow | null = null
@ -32,8 +33,10 @@ class Main {
process.exit(0)
}
app.whenReady().then(() => {
app.whenReady().then(async () => {
log.info('[index] App ready')
await initDatabase()
await initAppServer()
this.createWindow()
this.handleAppEvents()
this.handleWindowEvents()