This commit is contained in:
2026-04-10 15:14:13 +02:00
parent 0f54f6d908
commit de04ba84eb
2 changed files with 58 additions and 22 deletions

View File

@@ -2,43 +2,34 @@
echo === LineDance Player - Windows Build ===
echo.
REM Aktiver venv hvis den eksisterer
if exist "venv\Scripts\activate.bat" (
call venv\Scripts\activate.bat
) else (
echo ADVARSEL: venv ikke fundet - bruger system Python
echo ADVARSEL: venv ikke fundet
)
REM Installer PyInstaller hvis ikke installeret
pip show pyinstaller >nul 2>&1
if errorlevel 1 (
echo Installerer PyInstaller...
pip install pyinstaller
)
pip install pyinstaller >nul 2>&1
REM Ryd tidligere build
if exist "dist\LineDancePlayer" rmdir /s /q "dist\LineDancePlayer"
if exist "build\LineDancePlayer" rmdir /s /q "build\LineDancePlayer"
echo Bygger LineDance Player...
echo Dette tager 1-3 minutter...
echo Bygger... (1-3 minutter)
echo.
pyinstaller build_windows.spec --clean
pyinstaller build_windows.spec --clean --noconfirm
if errorlevel 1 (
echo.
echo FEJL: Build mislykkedes!
echo FEJL: Se fejlbesked ovenfor
pause
exit /b 1
)
echo.
echo === BUILD FAERDIG ===
echo === FAERDIG ===
echo Program: dist\LineDancePlayer\LineDancePlayer.exe
echo.
echo Programmet ligger i: dist\LineDancePlayer\LineDancePlayer.exe
echo.
echo HUSK: VLC skal stadig vaere installeret paa maskinen!
echo Download VLC fra: https://www.videolan.org/vlc/
echo HUSK: Kopieer hele dist\LineDancePlayer\ mappen - ikke kun .exe!
echo HUSK: VLC skal vaere installeret paa maskinen.
echo.
pause