escrcpy/electron/events/index.js
2024-05-13 22:49:39 +08:00

20 lines
424 B
JavaScript

import { app, ipcMain } from 'electron'
import updater from './updater/index.js'
import handles from './handles/index.js'
import tray from './tray/index.js'
// import search from './search/index.js'
export default (mainWindow) => {
ipcMain.on('restart-app', () => {
app.isQuiting = true
app.relaunch()
app.quit()
})
handles(mainWindow)
updater(mainWindow)
tray(mainWindow)
// search(mainWindow)
}