Multi-Platform Build Guide for Terraphim AI
Current Release: v1.0.2
β Successfully Built & Released
macOS (All Architectures)
- Universal Binary:
terraphim-ai-v1.0.2-macos-universal.tar.gz(43MB) - ARM64 (Apple Silicon):
terraphim-ai-v1.0.2-macos-aarch64.tar.gz(21MB) - x86_64 (Intel):
terraphim-ai-v1.0.2-macos-x86_64.tar.gz(22MB) - Desktop App:
terraphim-desktop-v1.0.2-macos-aarch64.dmg(11MB)
π§ Platform Build Requirements
Linux Builds
Requires Docker or cross-compilation environment:
# Using Docker
# Using Earthly (requires Docker daemon)
# Using cross (requires Docker daemon)
Windows Builds
Requires MinGW toolchain:
# Install on macOS
# Build
Build Commands Used
Native macOS Build
Cross-Platform Targets
# macOS targets
# Linux targets (requires cross/Docker)
# Windows targets (requires MinGW)
Desktop App (Tauri)
# Fix svelte-jsoneditor issue first
# Edit node_modules/svelte-jsoneditor/components/modals/TransformWizard.svelte
# Wrap <tr> elements in <tbody>
# Build
# Output location
# macOS: target/release/bundle/dmg/
# Linux: target/release/bundle/appimage/ (requires Linux host)
# Windows: target/release/bundle/msi/ (requires Windows host)Known Issues & Fixes
-
svelte-jsoneditor Table Structure
- Error: "
<tr>cannot be a child of<table>" - Fix: Edit
node_modules/svelte-jsoneditor/components/modals/TransformWizard.svelte - Wrap
<tr>elements with<tbody>tags
- Error: "
-
Atomic Feature Missing
- Error: "could not find
__cmd__save_article_to_atomic" - Fix: Comment out the command in
desktop/src-tauri/src/main.rs:378 - Or enable with:
--features atomic
- Error: "could not find
-
Docker/Earthly Issues
- Earthly requires Docker daemon running
- OrbStack can be used as Docker alternative on macOS
- Start with:
open -a OrbStack
-
Cross-Compilation Dependencies
- Linux: Requires Docker or proper toolchain
- Windows: Requires
mingw-w64toolchain - Install:
brew install mingw-w64(macOS)
Release Process
- Build all binaries
- Create archives:
- Create GitHub release:
- Upload additional artifacts:
CI/CD Recommendations
For future releases, consider:
- GitHub Actions for automated multi-platform builds
- Docker buildx for cross-platform container builds
- cargo-dist for Rust binary distribution
- Tauri GitHub Action for desktop app builds
Testing Checklist
Before release, verify:
- [ ] TUI REPL commands work
- [ ] Server starts and responds
- [ ] MCP server functions
- [ ] Desktop app launches
- [ ] Role switching works
- [ ] Search returns results
- [ ] Configuration persists