|
@@ -5,9 +5,12 @@ const setup = require('./electron/setup')
|
|
|
const electronConfig = require('./electron/config')
|
|
const electronConfig = require('./electron/config')
|
|
|
const storage = require('./electron/storage')
|
|
const storage = require('./electron/storage')
|
|
|
const is = require('electron-is')
|
|
const is = require('electron-is')
|
|
|
|
|
+const setTray = require('./electron/tray')
|
|
|
|
|
|
|
|
// main window
|
|
// main window
|
|
|
global.MAIN_WINDOW = null
|
|
global.MAIN_WINDOW = null
|
|
|
|
|
+global.APP_TRAY = null;
|
|
|
|
|
+global.CAN_QUIT = false;
|
|
|
|
|
|
|
|
// Initialize
|
|
// Initialize
|
|
|
setup()
|
|
setup()
|
|
@@ -71,6 +74,9 @@ async function createWindow () {
|
|
|
// loding page
|
|
// loding page
|
|
|
MAIN_WINDOW.loadURL(path.join('file://', __dirname, '/app/public/loading.html'))
|
|
MAIN_WINDOW.loadURL(path.join('file://', __dirname, '/app/public/loading.html'))
|
|
|
|
|
|
|
|
|
|
+ // tray
|
|
|
|
|
+ setTray();
|
|
|
|
|
+
|
|
|
// egg server
|
|
// egg server
|
|
|
await startServer(eggConfig)
|
|
await startServer(eggConfig)
|
|
|
|
|
|