import path from 'path'; import { getBaseDir } from 'ee-core/ps'; import { type AppConfig } from 'ee-core/config'; const config: () => AppConfig = () => { return { openDevTools: false, singleLock: true, windowsOption: { title: '中赢打印中心', width: 980, height: 650, minWidth: 400, minHeight: 300, webPreferences: { contextIsolation: false, nodeIntegration: true, }, autoHideMenuBar: true, frame: true, show: false, icon: path.join(getBaseDir(), 'public', 'images', 'logo-32.png'), }, logger: { level: 'INFO', outputJSON: false, appLogName: 'print.log', coreLogName: 'print-core.log', errorLogName: 'print-error.log', }, remote: { enable: false, url: 'http://electron-egg.kaka996.com/', }, socketServer: { enable: true, port: 7070, path: "/socket.io/", connectTimeout: 45000, pingTimeout: 30000, pingInterval: 25000, maxHttpBufferSize: 1e8, transports: ["polling", "websocket"], cors: { origin: true, }, channel: 'socket-channel', }, httpServer: { enable: true, https: { enable: false, key: '/public/ssl/localhost+1.key', cert: '/public/ssl/localhost+1.pem', }, host: '127.0.0.1', port: 7071, }, mainServer: { indexPath: '/public/dist/index.html', } }; }; export default config;