diff --git a/deploy/README.md b/deploy/README.md index 79390ab..1ac93a2 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -18,7 +18,7 @@ This directory contains packaging templates and installation scripts to deploy t Once you push this repository to your Gitea instance, users can install it in their local workspace directory by running: ```bash -curl -fsSL https:////multi-agent-mux/raw/branch/main/deploy/install.sh | bash +curl -fsSL https://git.godopu.com/tmpl/multi-agent-mux/raw/branch/main/deploy/install.sh | bash ``` Alternatively, if they have cloned the repository, they can execute: diff --git a/deploy/install.sh b/deploy/install.sh index 31cab3c..c3a6a6c 100644 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -44,6 +44,19 @@ fi # --- 2. Workspace Setup --- cd "$TARGET_DIR" + +# Download .agents/skills if missing (for curl one-liner installs) +if [ ! -d ".agents/skills" ]; then + echo "📥 .agents/skills not found. Fetching from Gitea repository..." + if command -v git &>/dev/null && [ -z "$(ls -A 2>/dev/null || echo "")" ]; then + echo "🌐 Cloning Gitea repository..." + git clone "https://git.godopu.com/tmpl/multi-agent-mux.git" . + else + echo "🌐 Downloading and extracting skills archive..." + curl -fsSL "https://git.godopu.com/tmpl/multi-agent-mux/archive/main.tar.gz" | tar -xz --strip-components=1 + fi +fi + echo "📂 Ensuring metadata directory structure (.mam/)..." mkdir -p .mam/jobs .mam/delegate_job_logs