...
This commit is contained in:
56
server/install.sh
Executable file
56
server/install.sh
Executable file
@@ -0,0 +1,56 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
|
||||
|
||||
# Colors for output
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
BLUE='\033[0;34m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
# Script directory
|
||||
|
||||
echo -e "${BLUE}🔧 Setting up Meet Client & Server Environment${NC}"
|
||||
echo "=================================================="
|
||||
|
||||
# Check if uv is installed
|
||||
if ! command -v uv &> /dev/null; then
|
||||
echo -e "${YELLOW}⚠️ uv is not installed. Installing uv...${NC}"
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
source $HOME/.cargo/env
|
||||
echo -e "${GREEN}✅ uv installed${NC}"
|
||||
fi
|
||||
|
||||
echo -e "${GREEN}✅ uv found${NC}"
|
||||
|
||||
# Initialize uv project if not already done
|
||||
if [ ! -f "pyproject.toml" ]; then
|
||||
echo -e "${YELLOW}⚠️ No pyproject.toml found. Initializing uv project...${NC}"
|
||||
uv init --no-readme --python 3.12
|
||||
echo -e "${GREEN}✅ uv project initialized${NC}"
|
||||
fi
|
||||
|
||||
# Sync dependencies
|
||||
# echo -e "${YELLOW}📦 Installing dependencies with uv...${NC}"
|
||||
# uv sync
|
||||
# uv pip install -e .
|
||||
# if [ -d "$HOME/code/git.ourworld.tf/herocode/herolib_python/herolib" ]; then
|
||||
# echo -e "${GREEN}✅ Found local herolib, installing...${NC}"
|
||||
# uv pip install -e "$HOME/code/git.ourworld.tf/herocode/herolib_python"
|
||||
# else
|
||||
# echo -e "${YELLOW}📦 Local herolib not found, installing from git...${NC}"
|
||||
# uv pip install herolib@git+https://git.ourworld.tf/herocode/herolib_python.git --force-reinstall --no-cache-dir
|
||||
# fi
|
||||
|
||||
uv pip install livekit-api livekit
|
||||
uv pip install fastapi uvicorn python-dotenv
|
||||
echo -e "${GREEN}✅ Dependencies installed${NC}"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user