forked from qwibitai/nanoclaw
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup-all.sh
More file actions
executable file
·62 lines (54 loc) · 1.48 KB
/
setup-all.sh
File metadata and controls
executable file
·62 lines (54 loc) · 1.48 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
#!/bin/bash
set -euo pipefail
# SolClaw Complete Setup Script
# Runs all setup steps in order
echo "🦀 SolClaw Setup"
echo ""
echo "This will configure:"
echo " • Container runtime"
echo " • WhatsApp authentication"
echo " • Solana wallet (MANDATORY)"
echo " • Background service"
echo ""
# Steps to run
steps=(
"environment"
"container"
"whatsapp-auth"
"groups"
"register"
"mounts"
"solana"
"service"
"verify"
)
# Run each step
for step in "${steps[@]}"; do
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Step: $step"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
npx tsx setup/index.ts --step "$step"
if [ $? -ne 0 ]; then
echo ""
echo "❌ Setup failed at step: $step"
echo ""
echo "To retry this step:"
echo " npx tsx setup/index.ts --step $step"
echo ""
exit 1
fi
echo ""
echo "✅ Step $step complete"
done
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "✅ Setup Complete!"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo "Next steps:"
echo " 1. Build: npm run build"
echo " 2. Test: npm run test:solana"
echo " 3. Start: npm start"
echo ""