#!/bin/bash # Build script for Linux echo "Building Local Transcription for Linux..." echo "=========================================" # Clean previous builds echo "Cleaning previous builds..." rm -rf build dist # Build with PyInstaller echo "Running PyInstaller..." uv run pyinstaller local-transcription.spec # Check if build succeeded if [ -d "dist/LocalTranscription" ]; then echo "" echo "✓ Build successful!" echo "Executable location: dist/LocalTranscription/LocalTranscription" echo "" echo "To run the application:" echo " cd dist/LocalTranscription" echo " ./LocalTranscription" echo "" echo "To create a distributable package:" echo " cd dist" echo " tar -czf LocalTranscription-Linux.tar.gz LocalTranscription/" else echo "" echo "✗ Build failed!" exit 1 fi