Init commit
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
python3 -m venv "$ROOT/venv"
|
||||
"$ROOT/venv/bin/pip" install -U pip
|
||||
"$ROOT/venv/bin/pip" install -r "$ROOT/requirements.txt"
|
||||
for d in "$ROOT"/hermes/MCP_*; do
|
||||
echo "Installation $(basename "$d")"
|
||||
rm -rf "$d/venv"
|
||||
python3 -m venv "$d/venv"
|
||||
"$d/venv/bin/pip" install -U pip
|
||||
"$d/venv/bin/pip" install -r "$d/requirements.txt"
|
||||
[ -f "$d/.env" ] || cp "$d/.env.example" "$d/.env"
|
||||
done
|
||||
[ -f "$ROOT/.env" ] || cp "$ROOT/.env.example" "$ROOT/.env"
|
||||
mkdir -p "$HOME/.hermes/skills" "$HOME/alfred-data"
|
||||
echo "Venv créés. Copie ensuite hermes/skills/* vers $HOME/.hermes/skills/ et renseigne les .env."
|
||||
Reference in New Issue
Block a user