32 lines
638 B
Bash
32 lines
638 B
Bash
#!/bin/bash
|
|
# Build script for creating the executable
|
|
|
|
echo "Building MusicDownloader executable..."
|
|
echo ""
|
|
|
|
# Activate virtual environment
|
|
source .venv/bin/activate
|
|
|
|
# Install PyInstaller if not already installed
|
|
echo "Checking PyInstaller..."
|
|
pip show pyinstaller > /dev/null 2>&1
|
|
if [ $? -ne 0 ]; then
|
|
echo "Installing PyInstaller..."
|
|
pip install pyinstaller
|
|
fi
|
|
|
|
# Run the build script
|
|
echo ""
|
|
echo "Starting build process..."
|
|
python build_exe.py
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo ""
|
|
echo "Build failed!"
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "Build completed successfully!"
|
|
echo "The executable is located at: dist/MusicDownloader"
|