-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·31 lines (25 loc) · 855 Bytes
/
setup.sh
File metadata and controls
executable file
·31 lines (25 loc) · 855 Bytes
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
#!/bin/bash
echo "Setting up Gemini Web Proxy for OpenCode..."
echo "=========================================="
# Check Python version
python_version=$(python3 --version 2>&1 | grep -o '[0-9]\+\.[0-9]\+')
if [[ $(echo "$python_version >= 3.8" | bc -l) -eq 0 ]]; then
echo "Error: Python 3.8 or higher is required"
exit 1
fi
echo "✓ Python version check passed"
# Install Python dependencies
echo "Installing Python dependencies..."
pip3 install -r requirements.txt
# Install Playwright browsers
echo "Installing Playwright browsers..."
playwright install chromium
echo ""
echo "Setup complete!"
echo ""
echo "Next steps:"
echo "1. Run: python3 run.py"
echo "2. Log in to your Google account when browser opens"
echo "3. Configure OpenCode with the provider settings from README.md"
echo ""
echo "For detailed instructions, see README.md"