#!/bin/bash # 构建所有工具 set -e cd "$(dirname "$0")" TOOLS=(datetime weather amap web_search fetch_page memories tool_manager) echo "=== 构建工具 ===" for tool in "${TOOLS[@]}"; do echo " $tool..." (cd "$tool" && cargo build --release --quiet) done echo "=== 完成 ===" for tool in "${TOOLS[@]}"; do ls -lh "$tool/target/release/$tool" 2>/dev/null done