feat: add tray icon

This commit is contained in:
wicast 2025-07-08 11:00:47 +08:00
parent 802e1780b1
commit 0666d4677e
2 changed files with 79 additions and 0 deletions

View file

@ -5,6 +5,7 @@ var dev = process.argv[0].includes('node_modules'),
docsServer,
app = null,
launcher = null,
tray = null,
clientWindows = [],
serverProcess = null,
node = false
@ -221,6 +222,15 @@ function startLauncher() {
process.stderr.write = stderrWrite
if (process.log) process.log = processLog
})
tray = require('./tray')({
window: launcher,
openClient: openClient,
app: app,
startServer: startServerProcess,
stopServer: stopServerProcess
})
})
let processLog = process.log,