# FRE-589 Tauri Desktop Packaging - Status Report

**Issue:** Tauri desktop app packaging (macOS, Windows, Linux)  
**Status:** `in_progress` (high priority)  
**Last Updated:** 2026-04-28

## Implementation Status

### ✅ Completed
- **Tauri framework setup** - Version 2.x configured
- **Cross-platform icons** - All sizes (32x32, 128x128, 256x256, 512x512) generated
- **Native menu bars** - Complete File, Edit, View, Window, Help menus with shortcuts
- **System tray** - Implemented with Show/Hide/Quit functionality
- **File system integration** - tauri-plugin-fs configured with scopes for $APP and $HOME/Documents
- **Dialog support** - tauri-plugin-dialog for open/save dialogs
- **Shell integration** - tauri-plugin-shell for system commands
- **Window state persistence** - Store plugin saves window position/state
- **Update mechanism** - Basic updater framework with platform-specific hooks

### ⏳ Platform-Specific Build Dependencies

**macOS:**
- ✅ Cocoa framework linked
- ⏳ Needs Xcode toolchain for Apple Silicon + Intel builds
- ⏳ Needs code signing identity configured

**Windows:**
- ✅ Windows API (0.52) linked  
- ⏳ Needs WiX Toolset for MSI installer
- ⏳ Needs certificate for signing

**Linux:**
- ⏳ gtk = "0.18" linked but build requires:
  - libgtk-3-dev
  - libwebkit2gtk-4.0-dev
  - libgdk-pixbuf-2.0-dev

### 📦 Packaging Status

| Platform | Bundle Type | Status |
|----------|-------------|--------|
| macOS | .app + .dmg | Configured, needs signing |
| Windows | .msi | Configured, needs WiX |
| Linux | .deb + AppImage | Configured, needs deps |

## Build Verification

```bash
cd src-tauri
cargo check  # ✅ Rust compilation OK
cargo build  # ⏳ Fails on Linux deps (expected)
```

**Error:** Missing `gdk-pixbuf-2.0` - expected for cross-platform build on Linux host

## Next Actions

1. **Install Linux build dependencies:**
   ```bash
   sudo apt-get install libgtk-3-dev libwebkit2gtk-4.0-dev libgdk-pixbuf-2.0-dev
   ```

2. **Test Linux build:**
   ```bash
   cargo tauri build --target x86_64-unknown-linux-gnu
   ```

3. **Configure macOS signing** (requires Apple dev account):
   - Set `MACOS_SIGNING_IDENTITY` in tauri.conf.json
   - Configure entitlements

4. **Configure Windows signing** (requires cert):
   - Set `WINDOWS_CERTIFICATE_THUMBPRINT` 
   - Configure WiX installer settings

## Acceptance Criteria Progress

- [x] Tauri setup with SolidStart frontend
- [x] Native menu bars
- [x] System tray
- [x] File system integration
- [x] Offline-first capability (local store plugin)
- [ ] macOS app build (Apple Silicon + Intel)
- [ ] Windows MSI installer
- [ ] Linux AppImage/Deb
- [ ] Startup time <2 seconds (needs benchmarking)

## Blockers

None - all dependencies are standard build tooling, no code blockers.
