From 1d2eca57ce4e0f72b3f3368d350d3ff3fcb658ee Mon Sep 17 00:00:00 2001 From: Godopu Date: Tue, 23 Jun 2026 23:16:00 +0900 Subject: [PATCH] fix(deploy): automatically download .agents/skills from Gitea if missing in installer --- deploy/README.md | 2 +- deploy/install.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) 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