9 Commits

Author SHA1 Message Date
MikiVL
6b2c87dc18 修复 Windows 编码问题导致生成失败
Windows 默认编码为 GBK,Python stdout 输出含中文的 JSON 时
Node.js 端无法正确解析,导致批量生成操作静默失败。

- python/main.py:启动时强制 stdin/stdout 使用 UTF-8
- templateIpc.js:spawn 传入 PYTHONUTF8=1,改用 Buffer 拼接后 UTF-8 解码

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 11:41:55 +08:00
MikiVL
cb2c186f7f 添加 GitHub Actions Windows 构建流程
Some checks are pending
Build Windows Installer / build-windows (push) Waiting to run
- 新增 .github/workflows/build-windows.yml,在 windows-latest runner 上构建 NSIS 安装包
- 修复 PYTHON_BIN 在 Windows 下需要 .exe 后缀
- 更新 extraResources 为目录式 glob,同时兼容 macOS (main) 和 Windows (main.exe)
- package.json 新增 win/nsis electron-builder 目标配置

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-05 23:02:53 +08:00
MikiVL
9738d2cd67 添加 Playwright E2E 测试及构建修复
- 修复 vite.config.mjs base 路径为 "./" 解决 file:// 协议加载失败
- 添加测试专用 mockDialog IPC 绕过原生文件选择对话框
- 重建 better-sqlite3 以适配 Electron 内嵌 Node ABI
- 新增 6 个 E2E 测试:模板增删改、批量生成、文件解析

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-05 15:01:13 +08:00
MikiVL
fcf3d5c7c2 fix: 生成页错误处理,编辑模式支持更新模板文件 2026-05-05 14:03:19 +08:00
MikiVL
b3be6f5f03 feat: 批量生成 IPC handler 2026-05-05 13:37:15 +08:00
MikiVL
1c164ea3d9 fix: 为 callPython 添加 spawn 错误处理,防止进程启动失败时永久挂起 2026-05-05 13:36:44 +08:00
MikiVL
aee1c6bb69 feat: 模板管理 IPC handler 2026-05-05 13:36:06 +08:00
MikiVL
d92e39c936 feat: SQLite 数据库初始化及模板 CRUD 2026-05-05 13:34:46 +08:00
MikiVL
68f90f4e4c chore: Electron 主进程脚手架
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-05 13:32:43 +08:00