Prerequisites
Install Node.js 18+
Install Rust Toolchain
Tauri requires Rust for native compilation. Install via rustup:Verify installation:
Platform-Specific Dependencies
macOS
Install Xcode Command Line Tools:Windows
Install the required build tools:- Microsoft C++ Build Tools - Download from Visual Studio
- WebView2 - Usually pre-installed on Windows 10/11
Linux
Install development dependencies (Debian/Ubuntu):Development Build
Install Dependencies
Install Node.js dependencies:This installs:
- React and React DOM
- Tauri CLI and API
- TypeScript and Vite
- TailwindCSS
- Tauri plugins (global-shortcut, autostart, http, opener)
Start Development Server
Run the app in development mode with hot-reload:This will:
- Start Vite dev server on
http://localhost:1420 - Compile the Rust backend
- Launch the desktop app
- Enable hot-reload for frontend changes
The first build takes longer as Cargo compiles all dependencies. Subsequent builds use caching and are much faster.
Development Commands
Production Build
Build for Your Platform
Create an optimized production build:This will:
- Run
tsc && vite buildto compile frontend - Compile Rust in release mode with optimizations
- Generate platform-specific installers
Cross-Platform Builds
Building for macOS Architectures
To build for a specific architecture on macOS:Cross-compiling from Intel to Apple Silicon (or vice versa) on the same machine is supported by Rust and works seamlessly on macOS.
Building Universal Binaries
For a universal macOS binary that runs on both architectures:Configuration
Version Bumping
The app version is defined in two places and must be kept in sync:package.json(line 4):
src-tauri/Cargo.toml(line 3):
src-tauri/tauri.conf.json(line 4):
Build Configuration
The Tauri build is configured insrc-tauri/tauri.conf.json:
Bundle Configuration
Control which installers are generated:Troubleshooting
Build fails with 'command not found: tauri'
Build fails with 'command not found: tauri'
Install the Tauri CLI:The CLI is installed as a dev dependency via
@tauri-apps/cli.Rust compilation errors
Rust compilation errors
Update your Rust toolchain:Clear the build cache:
Frontend changes not reflecting
Frontend changes not reflecting
Vite’s hot-reload should work automatically. If not:
- Stop the dev server (Ctrl+C)
- Clear Vite cache:
rm -rf node_modules/.vite - Restart:
npm run tauri dev
macOS: 'App is damaged' error
macOS: 'App is damaged' error
This happens when the app isn’t code-signed. For development builds:For distribution, you need an Apple Developer certificate.
Windows: MSI installation blocked
Windows: MSI installation blocked
Windows SmartScreen may block unsigned installers. For development:
- Right-click the MSI → Properties → Unblock
- Or click “More info” → “Run anyway” during installation
Next Steps
Release Process
Learn how to create automated releases with GitHub Actions