mirror of
https://gitee.com/viarotel-org/escrcpy.git
synced 2024-12-05 12:48:10 +08:00
22 lines
484 B
JavaScript
22 lines
484 B
JavaScript
import { app, ipcMain } from 'electron'
|
|
|
|
import shortcuts from './shortcuts/index.js'
|
|
import updater from './updater/index.js'
|
|
import handles from './handles/index.js'
|
|
import tray from './tray/index.js'
|
|
import theme from './theme/index.js'
|
|
|
|
export default (mainWindow) => {
|
|
ipcMain.on('restart-app', () => {
|
|
app.isQuiting = true
|
|
app.relaunch()
|
|
app.quit()
|
|
})
|
|
|
|
handles(mainWindow)
|
|
updater(mainWindow)
|
|
tray(mainWindow)
|
|
theme(mainWindow)
|
|
shortcuts(mainWindow)
|
|
}
|