a89c7894cf
Backend: - FastAPI avec PostgreSQL et Redis - Authentification JWT complète - API REST pour musique, playlists, recherche - Streaming audio via yt-dlp - SQLAlchemy 2.0 async Frontend: - Flutter avec thème néon cyberpunk - State management Riverpod - Layout adaptatif desktop/mobile - Lecteur audio avec mini-player Infrastructure: - Docker Compose (PostgreSQL + Redis) - Scripts d'installation automatisés - Scripts de build pour exécutables Fichiers ajoutés: - BUILD_CLIENT_*.bat/sh: Scripts de compilation - BUILD_CLIENT_README.md: Documentation compilation - CHECK_FLUTTER.sh: Vérificateur d'environnement - requirements.txt mis à jour pour Python 3.13 - Modèles SQLAlchemy corrigés (metadata -> extra_metadata) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
106 lines
2.9 KiB
Batchfile
106 lines
2.9 KiB
Batchfile
@echo off
|
|
REM ============================================================================
|
|
REM Spotify Le 2 - Build Windows Client
|
|
REM ============================================================================
|
|
REM This script compiles the Flutter app into a Windows executable (.exe)
|
|
REM
|
|
REM Prerequisites:
|
|
REM 1. Flutter SDK installed: https://docs.flutter.dev/get-started/install/windows
|
|
REM 2. Visual Studio 2022 (with C++ desktop development tools)
|
|
REM 3. Git for Windows
|
|
REM ============================================================================
|
|
|
|
echo ========================================
|
|
echo SPOTIFY LE 2 - BUILD WINDOWS CLIENT
|
|
echo ========================================
|
|
echo.
|
|
|
|
REM Check if Flutter is installed
|
|
where flutter >nul 2>nul
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo [ERROR] Flutter is not installed or not in PATH!
|
|
echo Please install Flutter from: https://docs.flutter.dev/get-started/install/windows
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo [1/6] Checking Flutter installation...
|
|
flutter --version
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo [ERROR] Flutter check failed!
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo [OK] Flutter is ready!
|
|
echo.
|
|
|
|
echo [2/6] Checking Flutter doctor...
|
|
flutter doctor -v
|
|
echo.
|
|
|
|
echo [3/6] Navigate to frontend directory...
|
|
cd frontend
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo [ERROR] Frontend directory not found!
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo.
|
|
|
|
echo [4/6] Installing dependencies...
|
|
flutter pub get
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo [ERROR] Failed to install dependencies!
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo [OK] Dependencies installed!
|
|
echo.
|
|
|
|
echo [5/6] Building Windows executable...
|
|
echo This may take several minutes...
|
|
flutter build windows --release
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo [ERROR] Build failed!
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo.
|
|
|
|
echo [6/6] Creating distribution package...
|
|
set BUILD_DIR=build\windows\x64\runner\Release
|
|
set DIST_DIR=dist\windows
|
|
set VERSION=0.1.0
|
|
|
|
REM Create distribution directory
|
|
if exist %DIST_DIR% rmdir /s /q %DIST_DIR%
|
|
mkdir %DIST_DIR%
|
|
|
|
REM Copy executable and assets
|
|
xcopy /s /e /i "%BUILD_DIR%" "%DIST_DIR%" >nul
|
|
|
|
REM Create README in distribution
|
|
echo Spotify Le 2 - Windows Client > %DIST_DIR%\README.txt
|
|
echo. >> %DIST_DIR%\README.txt
|
|
echo Version: %VERSION% >> %DIST_DIR%\README.txt
|
|
echo. >> %DIST_DIR%\README.txt
|
|
echo To run the application, double-click on: spotify_le_2.exe >> %DIST_DIR%\README.txt
|
|
echo. >> %DIST_DIR%\README.txt
|
|
echo Make sure the backend server is running on http://localhost:8000 >> %DIST_DIR%\README.txt
|
|
echo. >> %DIST_DIR%\README.txt
|
|
|
|
echo [OK] Distribution package created!
|
|
echo.
|
|
|
|
echo ========================================
|
|
echo BUILD COMPLETED SUCCESSFULLY!
|
|
echo ========================================
|
|
echo.
|
|
echo Executable location: %DIST_DIR%\spotify_le_2.exe
|
|
echo.
|
|
echo To run the application:
|
|
echo 1. Make sure the backend is running (see START_WINDOWS.bat)
|
|
echo 2. Double-click: %DIST_DIR%\spotify_le_2.exe
|
|
echo.
|
|
pause
|