diff --git a/CLAUDE.md b/CLAUDE.md index 2f8a08f1..ec8cb448 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -43,6 +43,33 @@ When checking if a port is listening, use this order of fallbacks: ## Build & Sync Workflow +### CRITICAL: Sync Local Feed Before Building +- **ALWAYS sync the local-feed before building packages from edited source trees** +- The build system uses `secubox-tools/local-feed/` NOT `package/secubox/` directly +- If you edit files in `package/secubox//`, those changes won't be built unless synced + +**Before building after edits:** +```bash +# Option 1: Sync specific package to local-feed +rsync -av --delete package/secubox// secubox-tools/local-feed// + +# Option 2: Sync all SecuBox packages +for pkg in package/secubox/*/; do + name=$(basename "$pkg") + rsync -av --delete "$pkg" "secubox-tools/local-feed/$name/" +done + +# Then build +./secubox-tools/local-build.sh build +``` + +**Quick deploy without rebuild (for RPCD/shell scripts):** +```bash +# Copy script directly to router for testing +scp package/secubox//root/usr/libexec/rpcd/