从源码构建
构建步骤
- 克隆代码仓库
git clone https://github.com/getAsterisk/claudia.git
cd claudia
- 安装前端依赖
bun install
- 构建应用程序
开发模式(支持热重载)
bun run tauri dev
生产环境构建
# 构建应用
bun run tauri build
# 构建完成后的可执行文件位置:
# - Linux: src-tauri/target/release/bundle/
# - macOS: src-tauri/target/release/bundle/
# - Windows: src-tauri/target/release/bundle/
- 平台相关的构建选项
调试构建(编译更快,但生成的二进制文件更大)
bun run tauri build --debug
不打包构建(仅生成可执行文件)
bun run tauri build --no-bundle
macOS 通用二进制(兼容 Intel + Apple Silicon)
bun run tauri build --target universal-apple-darwin