diff --git a/.env b/.env index 320ac3d..f52b47c 100644 --- a/.env +++ b/.env @@ -1,7 +1,7 @@ NODE_ENV = production # 程序配置 ## 程序名称 -MAIN_VITE_TITLE = "ChatLens" +MAIN_VITE_TITLE = "ChatLab" # 全局 API 配置 MAIN_VITE_SERVER_API = 127.0.0.1 diff --git a/README.md b/README.md index 71e4711..87afdb2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ChatLens +# ChatLab 聊天记录分析工具 diff --git a/electron-builder.yml b/electron-builder.yml index e9605b4..97fc325 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -1,7 +1,7 @@ # 应用程序的唯一标识符 -appId: com.chatlens.app +appId: com.chatlab.app # 应用程序的产品名称 -productName: ChatLens +productName: ChatLab # 构建资源所在的目录 directories: buildResources: build @@ -19,13 +19,13 @@ asarUnpack: # Windows 平台配置 win: - executableName: ChatLens + executableName: ChatLab target: nsis # NSIS 安装器配置 nsis: oneClick: false - artifactName: ChatLens-${version}-setup.${ext} + artifactName: ChatLab-${version}-setup.${ext} shortcutName: ${productName} uninstallDisplayName: ${productName} createDesktopShortcut: always @@ -43,11 +43,11 @@ mac: # macOS 平台的 DMG 配置 dmg: - artifactName: ChatLens-${version}.${ext} + artifactName: ChatLab-${version}.${ext} # Linux 平台配置 linux: - executableName: chatlens + executableName: chatlab icon: build/icon.png target: - AppImage @@ -58,7 +58,7 @@ linux: # AppImage 配置 appImage: - artifactName: ChatLens-${version}.${ext} + artifactName: ChatLab-${version}.${ext} # 是否在构建之前重新编译原生模块 npmRebuild: false diff --git a/electron/main/database/core.ts b/electron/main/database/core.ts index a67385c..f414003 100644 --- a/electron/main/database/core.ts +++ b/electron/main/database/core.ts @@ -21,7 +21,7 @@ function getDbDir(): string { try { const docPath = app.getPath('documents') console.log('[Database] app.getPath("documents"):', docPath) - DB_DIR = path.join(docPath, 'ChatLens', 'databases') + DB_DIR = path.join(docPath, 'ChatLab', 'databases') } catch (error) { console.error('[Database] Error getting userData path:', error) DB_DIR = path.join(process.cwd(), 'databases') diff --git a/electron/main/index.ts b/electron/main/index.ts index ac15021..73631f8 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -45,7 +45,7 @@ class MainProcess { // 初始化程序 async init() { // 注册应用协议 - app.setAsDefaultProtocolClient('chatlens') + app.setAsDefaultProtocolClient('chatlab') // 应用程序准备好之前注册 protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: true, standard: true } }]) diff --git a/package.json b/package.json index b3e4a53..4f0b2a1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "ChatLens", + "name": "ChatLab", "version": "0.1.0", "description": "获取你的聊天记录年度分析报告", "author": "", diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index c975bf2..4236a2a 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -73,7 +73,7 @@ function cancelDelete() {
获取你的聊天记录分析报告