diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..c9cea3a Binary files /dev/null and b/icon.png differ diff --git a/launch_qt.sh b/launch_qt.sh index a13d378..8ec5d88 100755 --- a/launch_qt.sh +++ b/launch_qt.sh @@ -69,36 +69,42 @@ fi # Install missing dependencies if [ $MISSING_DEPS -eq 1 ]; then - echo "" - echo "📦 Installing missing dependencies..." - echo "This may take a few minutes..." - echo "" - - # Install system dependencies first (for sounddevice) - echo "Installing system dependencies..." - if command -v apt-get &> /dev/null; then - echo "Detected Debian/Ubuntu system" - echo "You may need to run: sudo apt-get install portaudio19-dev python3-pyqt5" - elif command -v dnf &> /dev/null; then - echo "Detected Fedora system" - echo "You may need to run: sudo dnf install portaudio-devel python3-qt5" - elif command -v pacman &> /dev/null; then - echo "Detected Arch system" - echo "You may need to run: sudo pacman -S portaudio python-pyqt5" + if [[ "$*" == *"--noint"* ]]; then + echo "⚠️ Missing dependencies detected in non-interactive mode" + echo "Please run './launch_qt.sh' from terminal to install dependencies" + # Continue anyway - dependencies might be installed elsewhere + else + echo "" + echo "📦 Installing missing dependencies..." + echo "This may take a few minutes..." + echo "" + + # Install system dependencies first (for sounddevice) + echo "Installing system dependencies..." + if command -v apt-get &> /dev/null; then + echo "Detected Debian/Ubuntu system" + echo "You may need to run: sudo apt-get install portaudio19-dev python3-pyqt5" + elif command -v dnf &> /dev/null; then + echo "Detected Fedora system" + echo "You may need to run: sudo dnf install portaudio-devel python3-qt5" + elif command -v pacman &> /dev/null; then + echo "Detected Arch system" + echo "You may need to run: sudo pacman -S portaudio python-pyqt5" + fi + + echo "" + echo "Installing Python packages..." + pip3 install --user PyQt5 sounddevice soundfile numpy python-socketio[client] requests + + if [ $? -ne 0 ]; then + echo "❌ Installation failed!" + echo "Please install dependencies manually:" + echo " pip3 install --user -r requirements.txt" + exit 1 + fi + + echo "✅ Dependencies installed successfully!" fi - - echo "" - echo "Installing Python packages..." - pip3 install --user PyQt5 sounddevice soundfile numpy python-socketio[client] requests - - if [ $? -ne 0 ]; then - echo "❌ Installation failed!" - echo "Please install dependencies manually:" - echo " pip3 install --user -r requirements.txt" - exit 1 - fi - - echo "✅ Dependencies installed successfully!" fi # Try to read server URL from settings