desktop-packaging-tauri
Tauri 2.x Bundling & Distribution
Quick Guide: Configure bundling in
tauri.conf.jsonunderbundle. Platform targets: NSIS/MSI (Windows), DMG/app bundle (macOS), deb/rpm/AppImage (Linux). Code signing is required for macOS distribution (Apple notarization) and recommended for Windows (SmartScreen). The auto-updater uses Ed25519 (Minisign) signatures -- generate keys withcargo tauri signer generate, setTAURI_SIGNING_PRIVATE_KEYat build time. Cross-platform CI usestauri-apps/tauri-actionwith a matrix strategy. Optimize binary size with[profile.release]settings inCargo.toml.Current version: Tauri 2.x (stable). Updater artifacts use
createUpdaterArtifacts: true(not the v1"v1Compatible"unless migrating).
<critical_requirements>
CRITICAL: Before Using This Skill
All code must follow project conventions in CLAUDE.md (kebab-case, named exports, import ordering,
import type, named constants)
(You MUST set TAURI_SIGNING_PRIVATE_KEY as an environment variable at build time for updater artifacts -- never commit the private key)
(You MUST configure code signing for macOS distribution -- unsigned apps are blocked by Gatekeeper)
(You MUST use bundle.identifier as a valid reverse-domain string -- it is used for code signing, app data paths, and store submissions)