-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·87 lines (74 loc) · 2.6 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·87 lines (74 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
# ==========================================
# Andy-agent-skill-workshop
# Dependency Installer
# ==========================================
set -e # Exit on error
echo "📦 Andy-agent-skill-workshop - Dependency Installer"
echo "=========================================="
# Detect OS
if [[ "$OSTYPE" == "darwin"* ]]; then
OS="macOS"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
OS="Linux"
else
OS="Unknown"
fi
echo "🖥️ Detected OS: $OS"
# ==========================================
# Install Node.js dependencies (md-to-pdf)
# ==========================================
echo ""
echo "📦 Installing gitbook-to-pdf dependencies..."
if command -v npm &> /dev/null; then
npm install -g md-to-pdf
echo "✅ md-to-pdf installed successfully"
else
echo "⚠️ npm not found. Please install Node.js first:"
echo " macOS: brew install node"
echo " Linux: curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && sudo apt-get install -y nodejs"
fi
# ==========================================
# Install Python dependencies
# ==========================================
echo ""
echo "📦 Installing Python dependencies..."
if command -v pip3 &> /dev/null; then
# Install anti-bot-downloader dependencies
if [ -f "skills/anti-bot-downloader/requirements.txt" ]; then
pip3 install -r skills/anti-bot-downloader/requirements.txt
echo "✅ anti-bot-downloader dependencies installed"
fi
else
echo "⚠️ pip3 not found. Please install Python 3.8+ first:"
echo " macOS: brew install python3"
echo " Linux: sudo apt-get install python3-pip"
fi
# ==========================================
# Verify installations
# ==========================================
echo ""
echo "🔍 Verifying installations..."
if command -v md-to-pdf &> /dev/null; then
MD2PDF_VERSION=$(md-to-pdf --version 2>/dev/null || echo "installed")
echo "✅ md-to-pdf: $MD2PDF_VERSION"
else
echo "⚠️ md-to-pdf: not installed"
fi
if python3 -c "import requests; import bs4" 2>/dev/null; then
echo "✅ Python packages: requests, beautifulsoup4 installed"
else
echo "⚠️ Python packages: some packages may be missing"
fi
# ==========================================
# Summary
# ==========================================
echo ""
echo "=========================================="
echo "✅ Installation complete!"
echo ""
echo "Next steps:"
echo " 1. Read the README.md for usage examples"
echo " 2. Try the example scripts in skills/*/scripts/"
echo " 3. Star the repo if you find it useful ⭐"
echo "=========================================="