/** * Preload module, this file will be loaded when the program starts. */ import { logger } from 'ee-core/log'; import {DbStorage} from "../service/database/DbStorage"; import { appConfigService } from '../service/database/AppConfigService' import { socketDService } from '../service/SocketDService' import { Menu } from 'electron' function preload(): void { // Example feature module, optional to use and modify logger.info('[preload] load 5'); // 移除菜单栏 Menu.setApplicationMenu(null); // init sqlite db DbStorage._init() appConfigService._init() socketDService._init() } /** * Entry point of the preload module */ export { preload };