本地构建
环境要求:Node.js 20.19+ / 22.12+、Rust stable 工具链、Tauri 2 平台原生编译工具链(macOS 需 Xcode Command Line Tools,Windows 需 C++ Build Tools + WebView2,Linux 需 WebKitGTK 等依赖)。
npm ci
# 开发调试
npm run tauri dev
# 测试与校验
npm test
npm run check
# 构建当前平台的 release 安装包
npm run tauri build
构建产物位于 src-tauri/target/release/bundle/ 下。Tauri 只能为当前宿主平台构建对应格式(如 DMG 只能在 macOS 上生成)。