#!/bin/bash set -e cd "$(dirname "$0")" cd ../.. # Set link mode to copy to avoid hardlink warnings export UV_LINK_MODE=copy # Install uv if not already installed if ! command -v uv &> /dev/null; then echo "Installing uv..." curl -LsSf https://astral.sh/uv/install.sh | sh # Update PATH for current session export PATH="$HOME/.local/bin:$PATH" fi # Verify uv is available if ! command -v uv &> /dev/null; then echo "Error: uv could not be found or installed" echo "Please ensure your shell PATH includes ~/.local/bin" exit 1 fi echo "uv version:" uv --version echo "Syncing dependencies with uv..." uv sync --extra linux echo "Installation completed successfully!" echo "To run UltraSinger:" echo " source .venv/bin/activate" echo " cd src" echo " py UltraSinger.py"