UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

30 lines (19 loc) 873 B
import { app } from 'electron'; import { join } from 'node:path'; export const mainDir = join(__dirname); export const preloadDir = join(mainDir, '../preload'); export const resourcesDir = join(mainDir, '../../resources'); export const buildDir = join(mainDir, '../../build'); const appPath = app.getAppPath(); export const nextStandaloneDir = join(appPath, 'dist', 'next'); export const userDataDir = app.getPath('userData'); export const appStorageDir = join(userDataDir, 'lobehub-storage'); // ------ Application storage directory ---- // // db schema hash export const DB_SCHEMA_HASH_FILENAME = 'lobehub-local-db-schema-hash'; // pglite database dir export const LOCAL_DATABASE_DIR = 'lobehub-local-db'; // 本地存储文件(模拟 S3) export const FILE_STORAGE_DIR = 'file-storage'; // Plugin 安装目录 export const INSTALL_PLUGINS_DIR = 'plugins';