Fix Makefile to use uv, add Rust setup instructions

- Replace pip with uv pip in Makefile.desktop and bundle script
- Add First-Time Setup section to DESKTOP.md with Rust installation
- Update requirements to mention uv package manager

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-15 13:42:00 -05:00
parent 79dfd14400
commit ec35fc4db0
3 changed files with 22 additions and 10 deletions
+19 -7
View File
@@ -24,23 +24,35 @@ Everything from kjvstudy.org, completely offline:
### For Development
- macOS 10.15+ (Catalina or later)
- Rust (install via [rustup](https://rustup.rs/))
- Python 3.11+
- Node.js 18+ (for Tauri CLI)
- Python 3.11+ with uv package manager
- Xcode Command Line Tools
### For Users
- macOS 10.15+ (Catalina or later)
- ~200MB disk space
## First-Time Setup
```bash
# 1. Install Rust (if not already installed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
# 2. Install Tauri CLI
cargo install tauri-cli
# 3. Verify installations
cargo --version # Should show cargo 1.x.x
cargo tauri --version # Should show tauri-cli 2.x.x
```
## Quick Start (Development)
```bash
# 1. Install Tauri CLI
cargo install tauri-cli
# 2. Start the Python server (in one terminal)
# 1. Start the Python server (in one terminal)
make -f Makefile.desktop dev
# 3. Run Tauri in dev mode (in another terminal)
# 2. Run Tauri in dev mode (in another terminal)
make -f Makefile.desktop dev-tauri
```
+1 -1
View File
@@ -9,7 +9,7 @@ all: install-deps bundle-python build-tauri
# Install required dependencies
install-deps:
@echo "=== Installing dependencies ==="
pip install pyinstaller
uv pip install pyinstaller
cd src-tauri && cargo fetch
@echo "Dependencies installed!"
+2 -2
View File
@@ -20,8 +20,8 @@ mkdir -p "$OUTPUT_DIR"
# Install desktop dependencies (without weasyprint)
echo ""
echo "=== Installing desktop dependencies ==="
pip install pyinstaller
pip install "fastapi[standard]>=0.115.12" "ged4py>=0.5.2" "mistune>=3.0.2" "parse>=1.20.2" "python-gedcom>=1.0.0"
uv pip install pyinstaller
uv pip install "fastapi[standard]>=0.115.12" "ged4py>=0.5.2" "mistune>=3.0.2" "parse>=1.20.2" "python-gedcom>=1.0.0"
# Create PyInstaller spec file
echo ""