Skip to content

Commit 99a2bbb

Browse files
authored
Merge pull request #1 from mikespook/main
feat(setup): add Ubuntu/Debian dependency support
2 parents 9cb9a80 + e43c9f2 commit 99a2bbb

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ If you prefer to set up manually:
4545
# Arch Linux
4646
sudo pacman -S python python-pip ffmpeg portaudio
4747

48+
# Ubuntu / Debian
49+
sudo apt install python3 python3-pip python3-venv ffmpeg portaudio19-dev pulseaudio-utils
50+
4851
# Your system should already have PipeWire/PulseAudio
4952
```
5053

setup.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,17 @@ if [ -f "$CONFIG_FILE" ]; then
3030
echo ""
3131
fi
3232

33+
# Detect python command
34+
if command -v python &> /dev/null; then
35+
PYTHON=python
36+
else
37+
PYTHON=python3
38+
fi
39+
3340
# Check if running in virtual environment
3441
if [ -z "$VIRTUAL_ENV" ]; then
3542
echo "Creating virtual environment..."
36-
python -m venv venv
43+
$PYTHON -m venv venv
3744
echo "Virtual environment created"
3845
echo ""
3946
echo "Please activate the virtual environment and run this script again:"
@@ -50,13 +57,15 @@ echo "Checking system dependencies..."
5057

5158
if ! command -v pactl &> /dev/null; then
5259
echo "ERROR: pactl not found. Please install pulseaudio-utils:"
53-
echo " sudo pacman -S pulseaudio-utils"
60+
echo " Arch: sudo pacman -S pulseaudio-utils"
61+
echo " Ubuntu/Debian: sudo apt install pulseaudio-utils"
5462
exit 1
5563
fi
5664

5765
if ! command -v ffmpeg &> /dev/null; then
5866
echo "ERROR: ffmpeg not found. Please install it:"
59-
echo " sudo pacman -S ffmpeg"
67+
echo " Arch: sudo pacman -S ffmpeg"
68+
echo " Ubuntu/Debian: sudo apt install ffmpeg"
6069
exit 1
6170
fi
6271

@@ -147,7 +156,7 @@ echo " Setup Complete!"
147156
echo "======================================"
148157
echo ""
149158
echo "To run the application:"
150-
echo " python run.py"
159+
echo " $PYTHON run.py"
151160
echo ""
152161
echo "Keyboard shortcuts:"
153162
echo " r - Start recording"

0 commit comments

Comments
 (0)