$ErrorActionPreference = "Stop" $ProjectRoot = $PSScriptRoot $apk = Join-Path $ProjectRoot "build\app\outputs\flutter-apk\app-release.apk" if (-not (Test-Path $apk)) { throw "APK introuvable. Lance d'abord .\BUILD_APK_RELEASE.ps1" } Write-Host "=== Appareils ADB ===" -ForegroundColor Cyan adb devices Write-Host "" Write-Host "=== Installation ===" -ForegroundColor Cyan adb install -r "$apk" if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } Write-Host "[OK] Application installee." -ForegroundColor Green