#!/bin/bash echo "Setting up Countdown Timer Application..." echo # Check if venv exists if [ ! -d "venv" ]; then echo "Creating virtual environment..." python3 -m venv venv if [ $? -ne 0 ]; then echo "Error: Failed to create virtual environment" echo "Please make sure Python 3 is installed" exit 1 fi fi echo "Activating virtual environment..." source venv/bin/activate echo "Installing dependencies..." python -m pip install --upgrade pip pip install -r requirements.txt if [ $? -ne 0 ]; then echo "Error: Failed to install dependencies" exit 1 fi echo echo "Setup complete!" echo "To run the application, use: ./run.sh"