Initial commit: lesson-highlights generator
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
@echo off
|
||||
REM Piano Highlight Generator - Build Script for Windows
|
||||
REM Prerequisites: Python 3.10+, FFmpeg (in PATH)
|
||||
|
||||
echo ================================================
|
||||
echo Piano Highlight Generator - Nuitka Build
|
||||
echo ================================================
|
||||
echo.
|
||||
|
||||
REM Check Python version
|
||||
echo Checking Python version...
|
||||
python --version
|
||||
if errorlevel 1 (
|
||||
echo ERROR: Python not found. Please install Python 3.10 or higher.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Check FFmpeg
|
||||
echo.
|
||||
echo Checking FFmpeg...
|
||||
where ffmpeg >nul 2>nul
|
||||
if errorlevel 1 (
|
||||
echo WARNING: FFmpeg not found in PATH. The built executable will require FFmpeg to be installed.
|
||||
echo Please install FFmpeg from: https://ffmpeg.org/download.html
|
||||
echo.
|
||||
)
|
||||
|
||||
REM Create dist directory if not exists
|
||||
if not exist "dist" mkdir dist
|
||||
|
||||
REM Install build dependencies
|
||||
echo.
|
||||
echo Installing build dependencies...
|
||||
pip install nuitka pandas
|
||||
|
||||
REM Build command
|
||||
echo.
|
||||
echo Starting Nuitka compilation...
|
||||
echo This may take several minutes on first run...
|
||||
echo.
|
||||
|
||||
python -m nuitka ^
|
||||
--standalone ^
|
||||
--onefile ^
|
||||
--windows-console-mode=disable ^
|
||||
--output-dir=dist ^
|
||||
--output-name=PianoHighlightGenerator ^
|
||||
--enable-plugin=pyside6 ^
|
||||
--include-data-files=src/core/prompts=prompts ^
|
||||
--python-version=3.10 ^
|
||||
src/main.py
|
||||
|
||||
if errorlevel 1 (
|
||||
echo.
|
||||
echo BUILD FAILED!
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ================================================
|
||||
echo Build complete!
|
||||
echo ================================================
|
||||
echo.
|
||||
echo Output: dist\PianoHighlightGenerator.exe
|
||||
echo.
|
||||
echo NOTE: FFmpeg must be in PATH for the executable to work.
|
||||
echo If FFmpeg is not installed, download from https://ffmpeg.org
|
||||
echo.
|
||||
pause
|
||||
Reference in New Issue
Block a user