Build Prerequisites
Before building, ensure you have:- Completed the Development Setup
- Installed all platform-specific dependencies
- Run
bun install --frozen-lockfileto install dependencies
Building the App
Type-check and build frontend
First, ensure your TypeScript code is error-free and build the frontend:This command:
- Runs
tscto type-check all TypeScript files - Builds the Vite frontend bundle for production
Platform-Specific Builds
macOS
- Apple Silicon (ARM64)
- Intel (x86_64)
Build for Apple Silicon Macs (M1/M2/M3):Output:
.dmg and .app files in src-tauri/target/aarch64-apple-darwin/release/bundle/Windows
On Windows, the default build produces:.exeinstaller (NSIS).msiinstaller (MSI)
src-tauri/target/release/bundle/
Linux
On Linux (Ubuntu 22.04 recommended):.debpackage (Debian/Ubuntu).AppImage(portable)
src-tauri/target/release/bundle/
Build Artifacts
After building, you’ll find the following insrc-tauri/target/release/bundle/:
- macOS
- Windows
- Linux
dmg/- macOS disk image installer (.dmg)macos/- macOS application bundle (.app)
Development Builds
For faster iteration during development, you can create debug builds:src-tauri/target/debug/.
Pre-Build Checks
Before creating a production build, always run:Troubleshooting Build Issues
Build Fails on Type Errors
Run type-check separately to see detailed errors:Rust Compilation Errors
Check for Rust errors before building:Submodule Not Found
Ensure git submodules are initialized:Platform-Specific Dependencies Missing
On Linux, ensure all WebKit dependencies are installed:Next Steps
Release Process
Learn how to create and publish releases
CI/CD Workflows
Understand automated builds and testing