跳到主要内容

本地构建

环境要求:Node.js 18+、Rust 1.70+。

npm install

# 开发调试
npm run tauri:dev

# 构建安装包(在对应操作系统上执行)
npm run build:current # 当前平台
npm run build:win # Windows x64
npm run build:win-arm64 # Windows ARM64
npm run build:mac # macOS Universal(Intel + Apple Silicon)
npm run build:mac-x64 # macOS Intel
npm run build:mac-arm64 # macOS Apple Silicon
npm run build:linux # Linux x64
npm run build:linux-arm64 # Linux ARM64

构建产物位于 src-tauri/target/release/bundle/ 下(Windows 为 .exe,macOS 为 .dmg,Linux 为 .deb / .rpm / .AppImage)。

跨平台构建需要在对应操作系统上执行。