fix(deploy): automatically download .agents/skills from Gitea if missing in installer
This commit is contained in:
+1
-1
@@ -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://<your-gitea-domain>/<username>/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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user