Skip to content

2.0.8

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Jul 11:38
· 4 commits to master since this release

[2.0.8] - 2026-07-05

变更

  • 包管理器迁移:项目从 npm 迁移到 pnpm,使用 pnpm-lock.yamlpackageManager 固定依赖安装入口,桌面构建、CI 与本地命令统一使用 pnpm。
  • Electron 优先构建:明确当前发布目标为 Electron 桌面应用,保留浏览器调试能力,但不再把独立 Web 端作为发布目标。
  • 桌面依赖打包策略:Electron 打包使用 hoisted node_modules 布局,并在 afterPack 阶段修补 pnpm 场景下可能漏收的深层运行时依赖,提升安装包启动稳定性。

修复

  • 修复 pnpm 迁移后 Windows 安装包启动时报 Cannot find module 'ee-first' 的问题,避免 Express server 在打包后的 app.asar 中缺少深层依赖。
  • 修复桌面构建后本地 better-sqlite3 ABI 可能停留在 Electron 版本的问题,构建结束后会恢复到当前 Node.js 可用状态。

文档

  • 新增 pnpm 迁移 ADR,说明 lockfile、native build scripts 和 Electron 打包约束。
  • 更新 Electron native module 手册,加入 Node/Electron ABI 切换、pnpm 打包依赖缺失和 app.asar 验证方法。
  • 记录 Electron-first 方向和 2.1.0 性能优化规划,为后续纯桌面优化做准备。