feat(electron): create recording through tray (#10526)

- added tray menu for controlling recording status
- recording watcher for monitoring system audio input events
This commit is contained in:
pengx17
2025-03-18 04:12:30 +00:00
parent 05329e96c7
commit a016630a82
29 changed files with 1186 additions and 258 deletions
@@ -14,6 +14,8 @@ import { registerEvents } from './events';
import { registerHandlers } from './handlers';
import { logger } from './logger';
import { registerProtocol } from './protocol';
import { setupRecording } from './recording';
import { getTrayState } from './tray';
import { registerUpdater } from './updater';
import { launch } from './windows-manager/launcher';
import { launchStage } from './windows-manager/stage';
@@ -85,7 +87,9 @@ app
.then(registerHandlers)
.then(registerEvents)
.then(launch)
.then(setupRecording)
.then(createApplicationMenu)
.then(getTrayState)
.then(registerUpdater)
.catch(e => console.error('Failed create window:', e));