Skip to content

Commit 6eb161c

Browse files
committed
feat(desktop): 新增 Electron 桌面端壳与自绘标题栏
- 新增 desktop/ Electron 工程:启动后端并等待 /api/health,就绪后加载页面;打包模式从 extraResources 读取 UI/后端 - 新增 DesktopTitleBar 组件,适配 frame:false 自绘标题栏,并修复桌面端 100vh 布局导致的外层滚动条 - chat 页面右侧布局调整更接近原生微信;detection-result 调试输出仅在 dev 环境启用 - .gitignore 忽略 desktop 构建产物/依赖,保留 .gitkeep 占位文件 - README 补充 Windows 桌面端 EXE 打包(npm run dist)与产物路径说明
1 parent 848847c commit 6eb161c

15 files changed

Lines changed: 5793 additions & 6 deletions

File tree

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,13 @@ wheels/
2525
/vue3-wechat-tool/
2626
/wechatDataBackup/
2727
/wx_key/
28+
29+
# Electron desktop app
30+
/desktop/node_modules/
31+
/desktop/dist/
32+
/desktop/build/
33+
/desktop/resources/ui/*
34+
!/desktop/resources/ui/.gitkeep
35+
/desktop/resources/backend/*.exe
36+
!/desktop/resources/backend/.gitkeep
37+
/desktop/resources/icon.ico

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,21 @@ npm run dev
127127
- API服务: http://localhost:8000
128128
- API文档: http://localhost:8000/docs
129129

130+
## 打包为 EXE(Windows 桌面端)
131+
132+
本项目提供基于 Electron 的桌面端安装包(NSIS `Setup.exe`)。
133+
134+
```bash
135+
# 1) 安装桌面端依赖
136+
cd desktop
137+
npm install
138+
139+
# 2) 打包(会自动:nuxt generate -> 拷贝静态资源 -> PyInstaller 打包后端 -> electron-builder 生成安装包)
140+
npm run dist
141+
```
142+
143+
输出位置:`desktop/dist/WeChatDataAnalysis Setup <version>.exe`
144+
130145
## 使用指南
131146

132147
### 获取解密密钥

0 commit comments

Comments
 (0)