feat: Modernisation UI/UX et configuration Flutter multi-plateforme
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>
This commit is contained in:
@@ -0,0 +1,168 @@
|
||||
# 🎵 AudiOhm - Builds
|
||||
|
||||
Dossier contenant les builds compilés de l'application AudiOhm pour différentes plateformes.
|
||||
|
||||
## 📂 Structure
|
||||
|
||||
```
|
||||
builds/
|
||||
├── linux/ # Build Linux desktop
|
||||
├── android/ # Build Android APK
|
||||
├── windows/ # Build Windows EXE
|
||||
├── web/ # Build Web
|
||||
└── README.md # Ce fichier
|
||||
```
|
||||
|
||||
## 🚀 Statut des Builds
|
||||
|
||||
| Plateforme | Status | Instructions |
|
||||
|-----------|--------|--------------|
|
||||
| **Linux** | ⚠️ Nécessite dépendances | Voir [linux/README.md](linux/README.md) |
|
||||
| **Android** | ⚠️ Nécessite Android SDK | Voir [android/README.md](android/README.md) |
|
||||
| **Windows** | ⚠️ Doit être build sur Windows | Voir [windows/README.md](windows/README.md) |
|
||||
| **Web** | ⚠️ Problème audio | Voir [web/README.md](web/README.md) |
|
||||
|
||||
## 📖 Guides de Build
|
||||
|
||||
### Linux Desktop
|
||||
📖 **[linux/README.md](linux/README.md)**
|
||||
- Prérequis: clang, cmake, ninja-build, libgtk-3-dev
|
||||
- Commande: `flutter build linux --release`
|
||||
- Output: Exécutable Linux standalone
|
||||
|
||||
### Android APK
|
||||
📖 **[android/README.md](android/README.md)**
|
||||
- Prérequis: Android SDK
|
||||
- Commande: `flutter build apk --release`
|
||||
- Output: APK installable sur Android
|
||||
|
||||
### Windows EXE
|
||||
📖 **[windows/README.md](windows/README.md)**
|
||||
- Prérequis: Windows 10/11 + Visual Studio 2022
|
||||
- Doit être build sur Windows
|
||||
- Output: EXE Windows standalone
|
||||
|
||||
### Web
|
||||
📖 **[web/README.md](web/README.md)**
|
||||
- Prérequis: Aucun
|
||||
- Problème: just_audio_web incompatible
|
||||
- Alternative: `flutter run -d chrome` pour dev
|
||||
|
||||
## 🎯 Quick Start
|
||||
|
||||
### Pour tester immédiatement (Recommandé)
|
||||
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
flutter run -d chrome
|
||||
```
|
||||
|
||||
Hot Reload activé, développement rapide.
|
||||
|
||||
### Pour créer un build
|
||||
|
||||
1. Choisir la plateforme cible
|
||||
2. Lire le README correspondant dans ce dossier
|
||||
3. Suivre les instructions
|
||||
4. Le build sera copié dans le sous-dossier correspondant
|
||||
|
||||
## 🔧 Script de Build
|
||||
|
||||
Un script automatisé est disponible:
|
||||
|
||||
```bash
|
||||
cd /opt/audiOhm
|
||||
./BUILD.sh
|
||||
```
|
||||
|
||||
Ce script va:
|
||||
1. Vérifier les prérequis
|
||||
2. Builder pour chaque plateforme disponible
|
||||
3. Copier les artefacts dans ce dossier
|
||||
4. Générer un rapport
|
||||
|
||||
## 📊 Configuration
|
||||
|
||||
### Application
|
||||
- **Nom:** AudiOhm
|
||||
- **Version:** 0.1.0+1
|
||||
- **Package:** com.audiohm.audiOhm
|
||||
|
||||
### Technologies
|
||||
- **Flutter:** 3.38.7
|
||||
- **Dart:** 3.10.7
|
||||
- **Backend:** FastAPI (Python)
|
||||
|
||||
## 🐛 Dépannage
|
||||
|
||||
### Problèmes communs
|
||||
|
||||
**"No Android SDK found"**
|
||||
→ Voir [android/README.md](android/README.md) - Section Prérequis
|
||||
|
||||
**"build windows only supported on Windows hosts"**
|
||||
→ Normal! Builder sur Windows. Voir [windows/README.md](windows/README.md)
|
||||
|
||||
**Compilation errors web**
|
||||
→ Problème connu avec just_audio_web. Voir [web/README.md](web/README.md)
|
||||
|
||||
**Linux build failed**
|
||||
→ Installer les dépendances. Voir [linux/README.md](linux/README.md)
|
||||
|
||||
### Logs détaillés
|
||||
|
||||
```bash
|
||||
flutter build <platform> --verbose
|
||||
```
|
||||
|
||||
### Clean et retry
|
||||
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
flutter clean
|
||||
flutter pub get
|
||||
flutter build <platform>
|
||||
```
|
||||
|
||||
## 📝 Notes
|
||||
|
||||
- Les builds créés ici sont des **builds de release** (optimisés)
|
||||
- Pour le développement, utiliser `flutter run` à la place
|
||||
- Chaque sous-dossier contient des instructions spécifiques
|
||||
- Certains builds nécessitent des prérequis spécifiques
|
||||
|
||||
## 🎨 Design
|
||||
|
||||
L'application utilise un design **néon cyberpunk** avec:
|
||||
- Cyan (#00F0FF)
|
||||
- Violet (#BF00FF)
|
||||
- Rose (#FF006E)
|
||||
|
||||
Voir le [STYLE_GUIDE.md](../STYLE_GUIDE.md) pour plus de détails.
|
||||
|
||||
## 📞 Aide
|
||||
|
||||
Pour plus d'informations:
|
||||
- **Documentation générale:** [README.md](../README.md)
|
||||
- **Status détaillé:** [BUILD_STATUS.md](../BUILD_STATUS.md)
|
||||
- **Index documentation:** [BUILD_INDEX.md](../BUILD_INDEX.md)
|
||||
|
||||
## ✅ Checklist
|
||||
|
||||
Avant de builder:
|
||||
- [ ] Flutter installé
|
||||
- [ ] Dépendances installées (`flutter pub get`)
|
||||
- [ ] Prérequis plateforme installés
|
||||
- [ ] Backend en cours d'exécution (optionnel pour dev)
|
||||
|
||||
Après build:
|
||||
- [ ] Tester l'application
|
||||
- [ ] Vérifier la taille du build
|
||||
- [ ] Signer l'APK (Android)
|
||||
- [ ] Déployer sur la plateforme cible
|
||||
|
||||
---
|
||||
|
||||
**Version:** 1.0.0
|
||||
**Date:** 2026-01-19
|
||||
**Status:** Configuration terminée, prêt à builder avec prérequis ✅
|
||||
@@ -0,0 +1,161 @@
|
||||
# 📱 Android APK Build
|
||||
|
||||
## Status
|
||||
⚠️ **Nécessite Android SDK**
|
||||
|
||||
## Prérequis
|
||||
|
||||
### Installer Android SDK
|
||||
|
||||
#### Option 1: Android Studio (Recommandé)
|
||||
|
||||
```bash
|
||||
# Télécharger
|
||||
wget https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2023.1.1.28/android-studio-2023.1.1.28-linux.tar.gz
|
||||
|
||||
# Extraire
|
||||
tar -xzf android-studio-*.tar.gz
|
||||
cd android-studio/bin
|
||||
|
||||
# Lancer et suivre l'assistant
|
||||
./studio.sh
|
||||
```
|
||||
|
||||
#### Option 2: Command-line Tools
|
||||
|
||||
```bash
|
||||
# Créer dossier SDK
|
||||
mkdir -p ~/Android/sdk
|
||||
cd ~/Android/sdk
|
||||
|
||||
# Télécharger command-line tools
|
||||
wget https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip
|
||||
|
||||
# Extraire
|
||||
unzip commandlinetools-*.zip
|
||||
mkdir -p cmdline-tools/latest
|
||||
mv cmdline-tools/* cmdline-tools/latest/ 2>/dev/null || true
|
||||
|
||||
# Configurer variables d'environnement
|
||||
export ANDROID_HOME=~/Android/sdk
|
||||
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin
|
||||
export PATH=$PATH:$ANDROID_HOME/platform-tools
|
||||
|
||||
# Ajouter au ~/.bashrc
|
||||
echo 'export ANDROID_HOME=~/Android/sdk' >> ~/.bashrc
|
||||
echo 'export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin' >> ~/.bashrc
|
||||
echo 'export PATH=$PATH:$ANDROID_HOME/platform-tools' >> ~/.bashrc
|
||||
|
||||
# Installer SDK
|
||||
sdkmanager "platform-tools" "platforms;android-34" "build-tools;34.0.0"
|
||||
|
||||
# Accepter les licenses
|
||||
flutter doctor --android-licenses
|
||||
```
|
||||
|
||||
## Instructions de Build
|
||||
|
||||
### Debug APK (Test rapide)
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
flutter build apk --debug
|
||||
```
|
||||
|
||||
### Release APK (Production)
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
flutter build apk --release
|
||||
```
|
||||
|
||||
### App Bundle (Play Store)
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
flutter build appbundle --release
|
||||
```
|
||||
|
||||
## Output
|
||||
|
||||
### Debug APK
|
||||
```
|
||||
build/app/outputs/flutter-apk/app-debug.apk
|
||||
```
|
||||
|
||||
### Release APK
|
||||
```
|
||||
build/app/outputs/flutter-apk/app-release.apk
|
||||
```
|
||||
|
||||
### App Bundle
|
||||
```
|
||||
build/app/outputs/bundle/release/app-release.aab
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
### Via ADB
|
||||
```bash
|
||||
# Activer le mode développeur sur l'appareil
|
||||
# Connecter via USB
|
||||
|
||||
# Vérifier connexion
|
||||
adb devices
|
||||
|
||||
# Installer APK
|
||||
adb install build/app/outputs/flutter-apk/app-release.apk
|
||||
|
||||
# Ou installer debug
|
||||
adb install build/app/outputs/flutter-apk/app-debug.apk
|
||||
```
|
||||
|
||||
### Copier dans builds/
|
||||
```bash
|
||||
cp build/app/outputs/flutter-apk/app-release.apk /opt/audiOhm/builds/android/
|
||||
```
|
||||
|
||||
## Configuration Android
|
||||
|
||||
- **Package:** `com.audiohm.audiOhm`
|
||||
- **Min SDK:** 21 (Android 5.0)
|
||||
- **Target SDK:** 34 (Android 14)
|
||||
- **Compile SDK:** 34
|
||||
- **Kotlin:** 1.9.0
|
||||
- **Gradle:** 8.1.0
|
||||
|
||||
## Dépannage
|
||||
|
||||
### "No Android SDK found"
|
||||
→ Installer Android SDK (voir section Prérequis)
|
||||
|
||||
### "License not accepted"
|
||||
```bash
|
||||
flutter doctor --android-licenses
|
||||
```
|
||||
|
||||
### Gradle errors
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
flutter clean
|
||||
flutter pub get
|
||||
flutter build apk --release
|
||||
```
|
||||
|
||||
## Informations de Signature
|
||||
|
||||
La configuration de signature est dans:
|
||||
```
|
||||
frontend/android/app/build.gradle
|
||||
```
|
||||
|
||||
Pour la production, configurer votre propre keystore:
|
||||
```gradle
|
||||
android {
|
||||
signingConfigs {
|
||||
release {
|
||||
keyAlias keystoreProperties['keyAlias']
|
||||
keyPassword keystoreProperties['keyPassword']
|
||||
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
||||
storePassword keystoreProperties['storePassword']
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,61 @@
|
||||
# 🐧 Linux Desktop Build
|
||||
|
||||
## Status
|
||||
⚠️ **Nécessite dépendances système supplémentaires**
|
||||
|
||||
## Prérequis
|
||||
|
||||
### Dépendances système
|
||||
```bash
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
clang \
|
||||
cmake \
|
||||
ninja-build \
|
||||
pkg-config \
|
||||
libgtk-3-dev \
|
||||
liblzma-dev \
|
||||
libstdc++-12-dev \
|
||||
libssl-dev
|
||||
```
|
||||
|
||||
## Instructions de Build
|
||||
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
flutter build linux --release
|
||||
```
|
||||
|
||||
## Output
|
||||
|
||||
L'exécutable sera créé dans:
|
||||
```
|
||||
build/linux/x64/release/bundle/
|
||||
```
|
||||
|
||||
## Exécution
|
||||
|
||||
```bash
|
||||
# Option 1: Directement
|
||||
./build/linux/x64/release/bundle/audiOhm
|
||||
|
||||
# Option 2: Copier dans /opt/audiOhm/builds/linux/
|
||||
cp -r build/linux/x64/release/bundle/* /opt/audiOhm/builds/linux/
|
||||
cd /opt/audiOhm/builds/linux
|
||||
./audiOhm
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
- La structure Linux desktop a été créée
|
||||
- Les plugins nécessitent des dépendances système (pkg-config, etc.)
|
||||
- Le binaire sera standalone (inclut Flutter runtime)
|
||||
|
||||
## Alternative: Mode Développement
|
||||
|
||||
Pour tester sans build complet:
|
||||
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
flutter run -d linux
|
||||
```
|
||||
@@ -0,0 +1,199 @@
|
||||
# 🌐 Web Build
|
||||
|
||||
## Status
|
||||
⚠️ **Problème de compatibilité avec just_audio_web**
|
||||
|
||||
Le package `just_audio_web` 0.4.11 n'est pas compatible avec Flutter 3.38.7 et les nouveaux compilateurs Web.
|
||||
|
||||
## Prérequis
|
||||
|
||||
Aucun prérequis spécial - le build Web fonctionne sur toutes les plateformes (Linux, macOS, Windows, ChromeOS).
|
||||
|
||||
## Problème Actuel
|
||||
|
||||
### Erreur de compilation
|
||||
```
|
||||
Error: Function converted via 'toJS' contains invalid types in its function signature
|
||||
```
|
||||
|
||||
**Cause:** Incompatibilité entre `just_audio_web` et Flutter 3.38.7
|
||||
|
||||
## Solutions
|
||||
|
||||
### Option 1: Mode Développement (Recommandé pour tester)
|
||||
|
||||
Le mode développement fonctionne parfaitement:
|
||||
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
flutter run -d chrome
|
||||
```
|
||||
|
||||
**Avantages:**
|
||||
- Hot Reload pour développement rapide
|
||||
- Debugging intégré
|
||||
- Fonctionne immédiatement
|
||||
|
||||
### Option 2: Utiliser une alternative audio
|
||||
|
||||
Remplacer `just_audio` par un package compatible web:
|
||||
|
||||
```yaml
|
||||
# pubspec.yaml
|
||||
dependencies:
|
||||
# Garder just_audio pour mobile/desktop
|
||||
just_audio: ^0.9.44
|
||||
|
||||
# Ajouter alternative pour web
|
||||
audioplayers: ^6.0.0
|
||||
```
|
||||
|
||||
Puis utiliser des imports conditionnels:
|
||||
```dart
|
||||
import 'package:just_audio/just_audio.dart'
|
||||
if (dart.library.html) 'package:audioplayers/audioplayers.dart';
|
||||
```
|
||||
|
||||
### Option 3: Version Web UI-only (sans audio)
|
||||
|
||||
Pour démonstration du design sans streaming audio:
|
||||
|
||||
1. Commenter `just_audio` dans pubspec.yaml temporairement
|
||||
2. Builder
|
||||
3. Restaurer après build
|
||||
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
|
||||
# Éditer pubspec.yaml - commenter just_audio
|
||||
# vim pubspec.yaml
|
||||
|
||||
flutter pub get
|
||||
flutter build web --release
|
||||
```
|
||||
|
||||
## Instructions de Build (quand le problème sera résolu)
|
||||
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
flutter build web --release
|
||||
```
|
||||
|
||||
## Output
|
||||
|
||||
Le build sera créé dans:
|
||||
```
|
||||
build/web/
|
||||
```
|
||||
|
||||
Fichiers principaux:
|
||||
- `index.html` - Page HTML principale
|
||||
- `main.dart.js` - Application compilée
|
||||
- `assets/` - Ressources
|
||||
- `canvaskit/` - WebGL renderer
|
||||
|
||||
## Déploiement
|
||||
|
||||
### Option 1: Hosting statique
|
||||
|
||||
```bash
|
||||
# Copier les fichiers
|
||||
cp -r build/web/* /path/to/web/server/
|
||||
```
|
||||
|
||||
### Option 2: Netlify
|
||||
```bash
|
||||
# Installer Netlify CLI
|
||||
npm install -g netlify-cli
|
||||
|
||||
# Déployer
|
||||
netlify deploy --dir=build/web --prod
|
||||
```
|
||||
|
||||
### Option 3: Vercel
|
||||
```bash
|
||||
# Installer Vercel CLI
|
||||
npm install -g vercel
|
||||
|
||||
# Déployer
|
||||
vercel --prod
|
||||
```
|
||||
|
||||
### Option 4: Cloudflare Pages
|
||||
```bash
|
||||
# Via le dashboard Cloudflare
|
||||
# OU utiliser Wrangler
|
||||
npm install -g wrangler
|
||||
```
|
||||
|
||||
### Option 5: GitHub Pages
|
||||
```bash
|
||||
# Installer gh-pages
|
||||
npm install -g gh-pages
|
||||
|
||||
# Déployer
|
||||
gh-pages -d build/web
|
||||
```
|
||||
|
||||
## Test en local (sans build)
|
||||
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
|
||||
# Avec Chrome
|
||||
flutter run -d chrome
|
||||
|
||||
# Avec Edge
|
||||
flutter run -d edge
|
||||
|
||||
# Avec Firefox (expérimental)
|
||||
flutter run -d firefox
|
||||
|
||||
# Avec serveur web local
|
||||
flutter build web --no-sound-null-safety
|
||||
cd build/web
|
||||
python3 -m http.server 8080
|
||||
# Ouvrir http://localhost:8080
|
||||
```
|
||||
|
||||
## Informations de Build Web
|
||||
|
||||
- **Compiler:** dart2js (JavaScript)
|
||||
- **Renderer:** CanvasKit (WebGL)
|
||||
- **Target:** ES6+ browsers
|
||||
- **PWA Support:** Oui
|
||||
- **Single Application:** Oui (one-page app)
|
||||
|
||||
## Mise à jour future
|
||||
|
||||
Surveiller les mises à jour de:
|
||||
- `just_audio` pour compatibilité web améliorée
|
||||
- `just_audio_web` pour corrections de bugs
|
||||
|
||||
```bash
|
||||
flutter pub upgrade
|
||||
flutter build web --release
|
||||
```
|
||||
|
||||
## Alternative: Utiliser audioplayers
|
||||
|
||||
Si vous voulez une version web fonctionnelle maintenant:
|
||||
|
||||
```bash
|
||||
# Ajouter audioplayers
|
||||
flutter pub add audioplayers
|
||||
|
||||
# Modifier le code pour utiliser audioplayers sur web
|
||||
# Voir: https://pub.dev/packages/audioplayers
|
||||
```
|
||||
|
||||
## Mode développement sans backend
|
||||
|
||||
Pour tester uniquement l'UI:
|
||||
|
||||
```bash
|
||||
cd /opt/audiOhm/frontend
|
||||
|
||||
# Lancer avec fausses données
|
||||
flutter run -d chrome --dart-define=MOCK_DATA=true
|
||||
```
|
||||
@@ -0,0 +1,151 @@
|
||||
# 🪟 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
|
||||
```
|
||||
Reference in New Issue
Block a user