youtube-cli/install.sh
Jarian Cottingham 06877fb2fc feat: add TUI (Textual User Interface) with download queue system
- New TUI using Textual framework with responsive interface
- Search, results, download, and queue screens for YouTube video management
- Download queue system with sequential background downloads
- Status bar with queue count and download progress indicators
- Comprehensive test suite (97 tests) with 100% pass rate
- Modern Python packaging with pyproject.toml and uv support
- Added requirements-tui.txt for TUI-specific dependencies
- Updated setup.py and install.sh for TUI integration
- Enhanced README.md with TUI usage documentation
2026-02-25 15:59:15 -06:00

30 lines
974 B
Bash
Executable File

#!/bin/bash
set -e
echo "Installing YouTube CLI system-wide..."
cd "$(dirname "$0")"
# Install the package system-wide
pip3 install --user --break-system-packages -e .
# Add Python user bin to PATH if not already present
PYTHON_BIN_DIR="$HOME/Library/Python/3.14/bin"
if ! grep -q "Library/Python/3.14" ~/.zshrc 2>/dev/null; then
echo 'export PATH="$HOME/Library/Python/3.14/bin:$PATH"' >> ~/.zshrc
export PATH="$PYTHON_BIN_DIR:$PATH"
echo "Added Python user bin to ~/.zshrc and current PATH"
else
# Update PATH for current session anyway
export PATH="$PYTHON_BIN_DIR:$PATH"
fi
# Verify installation
if command -v youtube-cli &> /dev/null; then
echo "YouTube CLI installed successfully!"
echo "Run 'youtube-cli --help' to verify."
else
echo "YouTube CLI installed but not in PATH yet."
echo "Run 'source ~/.zshrc' to reload your shell or add this to your ~/.zshrc:"
echo ' export PATH="$HOME/Library/Python/3.14/bin:$PATH"'
fi