34 lines
634 B
Batchfile
34 lines
634 B
Batchfile
@echo off
|
|
REM Build script for creating the executable
|
|
|
|
echo Building MusicDownloader executable...
|
|
echo.
|
|
|
|
REM Activate virtual environment
|
|
call .venv\Scripts\activate.bat
|
|
|
|
REM Install PyInstaller if not already installed
|
|
echo Checking PyInstaller...
|
|
pip show pyinstaller >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo Installing PyInstaller...
|
|
pip install pyinstaller
|
|
)
|
|
|
|
REM Run the build script
|
|
echo.
|
|
echo Starting build process...
|
|
python build_exe.py
|
|
|
|
if errorlevel 1 (
|
|
echo.
|
|
echo Build failed!
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
echo Build completed successfully!
|
|
echo The executable is located at: dist\MusicDownloader.exe
|
|
pause
|