ADM-Purchasing-Tools / app /install.sh
abdulsalam2121
Add automation bot with Flask and Playwright
5b29309
Raw
History Blame Contribute Delete
514 Bytes
#!/usr/bin/env bash
set -euo pipefail
# Create and activate a venv, install dependencies and Playwright browsers (mac/linux)
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
# Install Playwright browsers
if command -v playwright >/dev/null 2>&1; then
playwright install chromium
else
pip install playwright
.venv/bin/playwright install chromium
fi
mkdir -p logs .browser_state
echo "Installation complete. Activate with: source .venv/bin/activate"