85dad89d5b
Phase 1 - Corrections Critiques: - Fixed memory leaks dans music_provider.dart (stream subscriptions) - Fixed race conditions dans search_provider.dart (stale results) - Fixed token refresh errors dans api_service.dart - Improved error handling avec messages utilisateur - Changed API URL to HTTPS by default Phase 2 - Améliorations UX Desktop: - Ajouté cursor pointers sur tous les éléments cliquables - Implémenté hover states avec effets néon glow (200ms transitions) - Créé skeleton loading states avec shimmer animation - Ajouté widgets: ClickableWrapper, ErrorDisplay, SkeletonLoading - Enhanced visual feedback pour desktop users Phase 3 - Configuration Flutter: - Configuré Android (Gradle 8.1.0, Kotlin 1.9.0, minSdk 21, targetSdk 34) - Créé launcher icons cyberpunk néon (5 densités) - Configuré Windows desktop (structure complète) - Activé Linux desktop support - Ajouté package équatable pour entités de domaine - Corrigé imports (colors.dart, auth_provider.dart) - Fixed Dio API compatibility (RequestOptions) Documentation: - STYLE_GUIDE.md: Guide complet (100+ pages) - DESIGN_IMPLEMENTATION_GUIDE.md: Implémentation Flutter - BUILD_STATUS.md: Status builds + troubleshooting - QUICKSTART_BUILDS.md: Guide rapide - BUILD_INDEX.md: Index documentation - PHASE_1_CORRECTIONS.md: Corrections Phase 1 - PHASE_2_UX_IMPROVEMENTS.md: Améliorations Phase 2 - PR_REVIEW_SUMMARY.md: Revue code complète - CODE_ANALYSIS_AND_PRIORITIES.md: Analyse code Scripts & Builds: - BUILD_ALL.sh: Script automatisé builds multi-plateforme - builds/: Structure avec README par plateforme - design-system/: Système de design complet Backend: - Ajouté streaming HTTP Range pour audio progressif - Enhanced YouTube service avec métadonnées complètes - Improved error handling et validation Generated with [Claude Code](https://claude.com/claude-code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
152 lines
2.9 KiB
Markdown
152 lines
2.9 KiB
Markdown
# 🪟 Windows Desktop Build
|
|
|
|
## Status
|
|
⚠️ **Doit être build sur Windows uniquement**
|
|
|
|
La cross-compilation Windows depuis Linux n'est pas supportée par Flutter.
|
|
|
|
## Prérequis
|
|
|
|
### Système d'exploitation
|
|
- **Windows 10** ou supérieur
|
|
- **Windows 11** recommandé
|
|
|
|
### Dépendances Windows
|
|
|
|
#### Visual Studio 2022 (Communauté gratuite)
|
|
```
|
|
Télécharger: https://visualstudio.microsoft.com/downloads/
|
|
|
|
Lors de l'installation, cocher:
|
|
- "Développement Desktop en C++"
|
|
```
|
|
|
|
#### Flutter
|
|
```powershell
|
|
# Télécharger Flutter SDK
|
|
# https://flutter.dev/docs/get-started/install/windows
|
|
|
|
# Ajouter au PATH
|
|
[System.Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\flutter\bin", "User")
|
|
```
|
|
|
|
## Instructions de Build
|
|
|
|
### Sur Windows
|
|
|
|
```powershell
|
|
# Cloner ou copier le projet
|
|
git clone <repo-url> audiOhm
|
|
cd audiOhm\frontend
|
|
|
|
# Installer dépendances
|
|
flutter pub get
|
|
|
|
# Builder
|
|
flutter build windows --release
|
|
```
|
|
|
|
## Output
|
|
|
|
L'exécutable sera créé dans:
|
|
```
|
|
build\windows\runner\Release\audiOhm.exe
|
|
```
|
|
|
|
## Copier dans builds/
|
|
|
|
```powershell
|
|
# Depuis le dossier du projet
|
|
Copy-Item -Recurse build\windows\runner\Release\* ..\builds\windows\
|
|
```
|
|
|
|
## Exécution
|
|
|
|
```powershell
|
|
cd C:\path\to\audiOhm\builds\windows
|
|
.\audiOhm.exe
|
|
```
|
|
|
|
## Informations de Build
|
|
|
|
- **Nom de l'exécutable:** `audiOhm.exe`
|
|
- **Architecture:** x64
|
|
- **Configuration:** Release
|
|
- **Framework:** Flutter 3.38.7
|
|
- **Dart:** 3.10.7
|
|
|
|
## Alternative depuis Linux
|
|
|
|
Pour tester l'application sur Windows depuis Linux:
|
|
|
|
### Option 1: Machine virtuelle Windows
|
|
```bash
|
|
# Créer VM Windows avec VirtualBox/VMware
|
|
# Installer Visual Studio et Flutter
|
|
# Builder sur la VM
|
|
```
|
|
|
|
### Option 2: Windows Remote
|
|
```bash
|
|
# Copier le code sur une machine Windows distante
|
|
# SSH/RDP dans la machine
|
|
# Builder
|
|
```
|
|
|
|
### Option 3: GitHub Actions
|
|
Utiliser CI/CD pour builder automatiquement sur Windows:
|
|
```yaml
|
|
# .github/workflows/windows.yml
|
|
name: Build Windows
|
|
on: [push]
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: subosito/flutter-action@v2
|
|
- run: flutter pub get
|
|
- run: flutter build windows --release
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: audiOhm-windows
|
|
path: frontend/build/windows/runner/Release/
|
|
```
|
|
|
|
## Dépannage
|
|
|
|
### "Visual Studio not found"
|
|
→ Installer Visual Studio 2022 avec "Développement Desktop en C++"
|
|
|
|
### "Build failed"
|
|
```powershell
|
|
flutter clean
|
|
flutter pub get
|
|
flutter build windows --release
|
|
```
|
|
|
|
### Problèmes de dépendances
|
|
```powershell
|
|
flutter doctor -v
|
|
```
|
|
|
|
## Export depuis Linux
|
|
|
|
Pour transférer le code vers Windows:
|
|
```bash
|
|
# Créer archive
|
|
cd /opt/audiOhm
|
|
tar czf audiOhm.tar.gz --exclude='build' --exclude='.dart_tool' frontend/
|
|
|
|
# Transférer via SCP/USB/etc.
|
|
scp audiOhm.tar.gz user@windows-machine:/path/to/destination/
|
|
```
|
|
|
|
Puis sur Windows:
|
|
```powershell
|
|
# Extraire
|
|
tar -xzf audiOhm.tar.gz
|
|
cd frontend
|
|
flutter build windows --release
|
|
```
|