This commit is contained in:
贾同学
2025-10-16 20:01:57 +08:00
commit 4768ef2d26
79 changed files with 3358 additions and 0 deletions

21
electron/preload/index.ts Normal file
View File

@@ -0,0 +1,21 @@
/**
* Preload module, this file will be loaded when the program starts.
*/
import {logger} from 'ee-core/log';
import {trayService} from '../service/os/tray';
import {securityService} from '../service/os/security';
import {autoUpdaterService} from '../service/os/auto_updater';
function preload(): void {
// Example feature module, optional to use and modify
logger.info('[preload] load 5');
trayService.create();
securityService.create();
autoUpdaterService.create();
}
/**
* Entry point of the preload module
*/
export { preload };