From ae7c4264532224ae1bca9e6750874335c4516f82 Mon Sep 17 00:00:00 2001 From: Queue Buddy Dev Date: Tue, 14 Apr 2026 02:01:36 +0000 Subject: [PATCH 1/5] fix: memory-optimized build for Render (O1 optimization) --- render.yaml | Bin 379 -> 564 bytes render_build.sh | Bin 340 -> 328 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/render.yaml b/render.yaml index f1b2c90ece967cedc7e1f209aebefac17d4935a2..544b1850507e9a8a42af2c089fbf4a2fd0e058dd 100644 GIT binary patch literal 564 zcmZXS&2GXl5QOJksqfGifZVyEiVBHRqSE$S;Q&fh2*?hpc=@*9y0Q3^<#@e2J3H&m z?@!Q5Uacw>SV05b>4DW_H#%yMcYyuP>AIN3Yb~_xVu5VWy?2B1I)H45pRf%`^Au-n z4qT;;mU`3<>=sPT%_=+Wpc2bd&%CDi6MxF-$N0Z)(-z=QHF8i6<|<95>AhiUraEIeI=5MQG)y^ns6WliUe>Em)|zi1ZxR24 R3=W%UjjzC};4#Jb>_6bySNs3~ literal 379 zcmX|-K~BR!3`O@ng(VhUrPWx?VuN%VoU8ZdC3F&o)6o4)JNHwG+f3qrmjsq$o{ zZN@Zj?4xz8?H)sGprOI_Q+YRkfE_7}D2&#ns#%gBS$glOBOgE`kLW|13>3#%x&8(r zz)K&)^=IB?1h+grCucb13@JWX(w=<|kqkdk^0o7Y1$@zD;OVjYcz@ZxWn|WM^0k38 zI;ER-BiF}6b=}}l|j&JEo^D= E2Q$Wcpa1{> diff --git a/render_build.sh b/render_build.sh index 958e26f8c72df4e1b1e3347bce708af49fe7e0a7..cf5891f074b831bfad23dab48eb8eebcd260a516 100644 GIT binary patch literal 328 zcmYk1OACTf5QWb==s(qMGOiVy)U36vhOtwlruDNq`3bLl(fE;_ZZeXXF|4KREMgt## zXMgye1`emCrdkkd&6I#+&9$N?ezM{9h?|{CIIo0pIW*sRuY}v_PA{W|gefRVb7ESo rSD`25(q;w7Jf=E%e88!>XurET6VnyxNH1jebN&2tJx1>cU0w16No6>9 literal 340 zcmZ9HJ8r`;5JY>OVl3B!g7kLjDuv-2@Uwvyph<#DCkWufxK*yfi)CfQu#lFVdGmI= z87;@r8kxE+K1lG%Zel8eZ?cdSD{^V`;L Date: Tue, 14 Apr 2026 02:33:57 +0000 Subject: [PATCH 2/5] fix: encoding of render_build.sh for linux --- render_build.sh | Bin 328 -> 164 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/render_build.sh b/render_build.sh index cf5891f074b831bfad23dab48eb8eebcd260a516..f03e08a3386a24c05d07b4dd18954bc7e4d261e0 100644 GIT binary patch literal 164 zcmW;FF%E(-6oBEqr+CJJsSw#~(ik_8gvpJx@C?<`M_x-bUd_QHc?AjEpMUv&pYMKG zSQiRw;wZ2m2{NUQ(9FqAE}G;hz=RVyMwn?~XfX`Pd7ftiUo&xnT31zb>U4X)=&sgR yRf?NmQbGp1I6uG>ElA1e(L`J;kW7py<7gfzT~8sdcQBmFdz7@%?~PW?LHq%GIXKJ! literal 328 zcmYk1OACTf5QWb==s(qMGOiVy)U36vhOtwlruDNq`3bLl(fE;_ZZeXXF|4KREMgt## zXMgye1`emCrdkkd&6I#+&9$N?ezM{9h?|{CIIo0pIW*sRuY}v_PA{W|gefRVb7ESo rSD`25(q;w7Jf=E%e88!>XurET6VnyxNH1jebN&2tJx1>cU0w16No6>9 From d5b412358ba2ab868b501400a99080fa06639388 Mon Sep 17 00:00:00 2001 From: Queue Buddy Dev Date: Tue, 14 Apr 2026 02:34:33 +0000 Subject: [PATCH 3/5] fix: inline build command in render.yaml to avoid encoding issues --- render.yaml | Bin 564 -> 736 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/render.yaml b/render.yaml index 544b1850507e9a8a42af2c089fbf4a2fd0e058dd..c4d20e4ba4348724743f49bb4f408f0830d3b470 100644 GIT binary patch delta 223 zcmXAjJr06E5QU$K-h)c2Eu^O~#?GI_SlAH}j4Ox))@W?Jf`{+|Cf>qJcoaV%li7Lm z-kaI^^nZir>)|WaO{LDNppb8@Six8n+aG;-@!Oo6oy7%~ioB|GE-t}`bn&3S>2a0acUvpSJ?v<5f+ Mkh4ef-(TDN1N)yTLjV8( delta 51 zcmaFBx`k!J67?j8M22F93;B8F6kJcbk?S;P>}ki<~Rkjan( Date: Tue, 14 Apr 2026 02:35:13 +0000 Subject: [PATCH 4/5] chore: add GitHub Action for automated build and deploy to gh-pages (final fix) --- .github/workflows/deploy.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..3a06bb9c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,20 @@ +name: Deploy to GitHub Pages +on: + push: + branches: [ deploy-v2, main ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + - run: flutter build web --release --no-tree-shake-icons + - name: GitHub Pages + uses: crazy-max/ghaction-github-pages@v4 + with: + target_branch: gh-pages + build_dir: build/web + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 9a1bac9dd206831aa10936e6f65fa5c8df8afe3a Mon Sep 17 00:00:00 2001 From: Queue Buddy Dev Date: Tue, 14 Apr 2026 14:06:06 +0000 Subject: [PATCH 5/5] feat: optimize and clarify Render deployment with verbose logging --- analysis_report.txt | 57 ----------------- build_error.txt | 53 ---------------- hf_sync | 1 - netlify.toml | 2 +- render.yaml | Bin 736 -> 289 bytes render_build.sh | 4 -- deploy.ps1 => scripts/deploy.ps1 | 0 netlify_build.sh => scripts/netlify_build.sh | 0 scripts/render_build.sh | 58 ++++++++++++++++++ .../setup_android.ps1 | 0 test_hf.dart | 23 ------- 11 files changed, 59 insertions(+), 139 deletions(-) delete mode 100644 analysis_report.txt delete mode 100644 build_error.txt delete mode 160000 hf_sync delete mode 100644 render_build.sh rename deploy.ps1 => scripts/deploy.ps1 (100%) rename netlify_build.sh => scripts/netlify_build.sh (100%) create mode 100644 scripts/render_build.sh rename setup_android.ps1 => scripts/setup_android.ps1 (100%) delete mode 100644 test_hf.dart diff --git a/analysis_report.txt b/analysis_report.txt deleted file mode 100644 index c6da040b..00000000 --- a/analysis_report.txt +++ /dev/null @@ -1,57 +0,0 @@ -Analyzing projet_banques... - -warning • Unused import: 'package:projet_queue_bancaire/components/agency_card.dart' • integration_test/app_test.dart:5:8 • unused_import - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/agency_card.dart:39:33 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/agency_card.dart:68:54 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/agency_card.dart:128:59 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/agency_card.dart:258:22 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/glass_container.dart:31:51 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/pulse_bar_widget.dart:41:50 • deprecated_member_use - info • The import of 'dart:ui' is unnecessary because all of the used elements are also provided by the import of 'package:flutter/material.dart' • lib/components/soloba_assistant.dart:2:8 • unnecessary_import - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/soloba_assistant.dart:91:46 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/soloba_assistant.dart:125:48 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/soloba_assistant.dart:136:64 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/soloba_assistant.dart:181:60 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/soloba_assistant.dart:201:59 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/soloba_assistant.dart:210:50 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/components/soloba_assistant.dart:247:73 • deprecated_member_use - info • The import of 'package:flutter/services.dart' is unnecessary because all of the used elements are also provided by the import of 'package:flutter/material.dart' • lib/pages/analytics_page.dart:3:8 • unnecessary_import -warning • The value of the local variable 'stats' isn't used • lib/pages/analytics_page.dart:14:11 • unused_local_variable - error • The method 'getAnalytics' isn't defined for the type 'FirebaseService' • lib/pages/analytics_page.dart:14:35 • undefined_method - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/analytics_page.dart:116:42 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/analytics_page.dart:131:41 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/analytics_page.dart:171:46 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/analytics_page.dart:211:41 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/backoffice_page.dart:50:39 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/backoffice_page.dart:85:55 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/backoffice_page.dart:108:88 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/backoffice_page.dart:137:49 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/backoffice_page.dart:149:73 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/backoffice_page.dart:149:110 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/backoffice_page.dart:220:22 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/home_page.dart:66:49 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/home_page.dart:67:49 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/home_page.dart:82:53 • deprecated_member_use - info • Don't use 'BuildContext's across async gaps • lib/pages/home_page.dart:94:39 • use_build_context_synchronously - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/home_page.dart:111:53 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/home_page.dart:142:51 • deprecated_member_use - info • Don't use 'BuildContext's across async gaps • lib/pages/home_page.dart:222:19 • use_build_context_synchronously -warning • Unused import: '../models/ticket.dart' • lib/pages/take_ticket_page.dart:7:8 • unused_import -warning • Unused import: '../components/pulse_bar_widget.dart' • lib/pages/take_ticket_page.dart:8:8 • unused_import - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/take_ticket_page.dart:103:48 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/take_ticket_page.dart:159:63 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/take_ticket_page.dart:252:69 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/take_ticket_page.dart:252:109 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/take_ticket_page.dart:267:97 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/take_ticket_page.dart:280:112 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/take_ticket_page.dart:332:55 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/take_ticket_page.dart:357:38 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/ticket_page.dart:90:78 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/ticket_page.dart:106:63 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/ticket_page.dart:111:72 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/ticket_page.dart:147:33 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/pages/ticket_page.dart:163:46 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/theme/app_theme.dart:45:56 • deprecated_member_use - info • 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss • lib/theme/app_theme.dart:69:42 • deprecated_member_use - -53 issues found. (ran in 12.7s) diff --git a/build_error.txt b/build_error.txt deleted file mode 100644 index a9c227d0..00000000 --- a/build_error.txt +++ /dev/null @@ -1,53 +0,0 @@ -Wasm dry run succeeded. Consider building and testing your application with the `--wasm` flag. See docs for more info: https://docs.flutter.dev/platform-integration/web/wasm -Use --no-wasm-dry-run to disable these warnings. -Target dart2js failed: ProcessException: Process exited abnormally with exit code 1: -lib/pages/take_ticket_page.dart:380:15: -Error: The setter 'selectedService' isn't defined for the type '_TakeTicketPageState'. - - '_TakeTicketPageState' is from 'package:projet_queue_bancaire/pages/take_ticket_page.dart' ('lib/pages/take_ticket_page.dart'). - selectedService = serviceId; - ^^^^^^^^^^^^^^^ -Error: Compilation failed. - Command: C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe compile js --platform-binaries=C:\src\flutter\bin\cache\flutter_web_sdk\kernel --invoker=flutter_tool -Ddart.vm.product=true -DFLUTTER_VERSION=3.41.6 -DFLUTTER_CHANNEL=stable -DFLUTTER_GIT_URL=https://github.com/flutter/flutter.git -DFLUTTER_FRAMEWORK_REVISION=db50e20168 -DFLUTTER_ENGINE_REVISION=425cfb54d0 -DFLUTTER_DART_VERSION=3.11.4 -DFLUTTER_WEB_USE_SKIA=true -DFLUTTER_WEB_USE_SKWASM=false -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/425cfb54d01a9472b3e81d9e76fd63a4a44cfbcb/ --native-null-assertions --no-source-maps -O4 --minify -o C:\Users\USER\queue-buddy\.dart_tool\flutter_build\67fd616a33aa640c9f0ac05a1b64b2eb\app.dill --packages=C:\Users\USER\queue-buddy\.dart_tool\package_config.json --cfe-only C:\Users\USER\queue-buddy\.dart_tool\flutter_build\67fd616a33aa640c9f0ac05a1b64b2eb\main.dart -#0 RunResult.throwException (package:flutter_tools/src/base/process.dart:153:5) -#1 _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart:379:19) - -#2 Dart2JSTarget.build (package:flutter_tools/src/build_system/targets/web.dart:208:5) - -#3 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:937:9) - -#4 Future.wait. (dart:async/future.dart:546:21) - -#5 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:875:32) - -#6 Future.wait. (dart:async/future.dart:546:21) - -#7 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:875:32) - -#8 FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:684:16) - -#9 WebBuilder.buildWeb (package:flutter_tools/src/web/compile.dart:107:34) - -#10 BuildWebCommand.runCommand (package:flutter_tools/src/commands/build_web.dart:300:5) - -#11 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1590:27) - -#12 AppContext.run. (package:flutter_tools/src/base/context.dart:154:19) - -#13 CommandRunner.runCommand (package:args/command_runner.dart:212:13) - -#14 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:496:9) - -#15 AppContext.run. (package:flutter_tools/src/base/context.dart:154:19) - -#16 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:431:5) - -#17 FlutterCommandRunner.run. (package:flutter_tools/src/runner/flutter_command_runner.dart:307:33) - -#18 run.. (package:flutter_tools/runner.dart:104:11) - -#19 AppContext.run. (package:flutter_tools/src/base/context.dart:154:19) - -#20 main (package:flutter_tools/executable.dart:103:3) - - -Error: Failed to compile application for the Web. diff --git a/hf_sync b/hf_sync deleted file mode 160000 index 23e4ec84..00000000 --- a/hf_sync +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 23e4ec84dccd26f61140c3a6825b3e96e351a3c5 diff --git a/netlify.toml b/netlify.toml index e6b9c1ea..fa468a42 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [build] - command = "bash netlify_build.sh" + command = "bash scripts/netlify_build.sh" publish = "build/web" diff --git a/render.yaml b/render.yaml index c4d20e4ba4348724743f49bb4f408f0830d3b470..6d1b417d2a8a18f1965baab4a5730d0090d166f3 100644 GIT binary patch literal 289 zcmX|+&1%Cy4217_3X!|L_q~OXQs|#a+Fp%zt*}e&jge#*zkO|y^f<#e(u@$#Ig
@9xmth t(j1Pb_UrumkI&do>z<@KigzyLg1o%pt+ItET&HU-BSvz{Shfj)c7NG%Sz`bI literal 736 zcmZXSPfx-?5XIlw#P7gKPqmRF2?s(nCV~?G#alz6q*W-STTuM)>Ti}dB{Z9MXLsJb zc{8(rzfOq??UZST<apg0AuBld)&kVvxg--eS_ zo#_Xk*@o|<`kIOkJ+?kNe04u2XpPa4`CJo!pZXp&y2DnF6L@!e^9q{z8MiH)qiNoI zo;%&rrx#S*`>r)QYPc@;iL%I@XWYVQ z{3*4UbjnnRteDE}T@`2;vs?e0w`H>_bVbyHzawty-)snny*``93@d}j6rc0`1AYN> A{r~^~ diff --git a/render_build.sh b/render_build.sh deleted file mode 100644 index f03e08a3..00000000 --- a/render_build.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -echo '==> Optimisation memoire pour Render...' -export MALLOC_ARENA_MAX=2 -flutter build web --release --no-tree-shake-icons --dart2js-optimization=O1 diff --git a/deploy.ps1 b/scripts/deploy.ps1 similarity index 100% rename from deploy.ps1 rename to scripts/deploy.ps1 diff --git a/netlify_build.sh b/scripts/netlify_build.sh similarity index 100% rename from netlify_build.sh rename to scripts/netlify_build.sh diff --git a/scripts/render_build.sh b/scripts/render_build.sh new file mode 100644 index 00000000..783374e7 --- /dev/null +++ b/scripts/render_build.sh @@ -0,0 +1,58 @@ +#!/bin/bash + +# Arrêter le script en cas d'erreur +set -e + +echo "--- 🚀 Démarrage du build pour Render (Mode Verbeux Actif) ---" + +# --- 📊 Diagnostic Système --- +echo "--- 🖥️ Infos Système ---" +free -h || echo "Commande 'free' non disponible" +df -h . +echo "Utilisateur actuel : $(whoami)" +echo "Dossier actuel : $(pwd)" + +# --- ⚙️ Optimisation de la mémoire --- +export MALLOC_ARENA_MAX=2 +export NODE_OPTIONS="--max-old-space-size=2048" +echo "MALLOC_ARENA_MAX réglé sur $MALLOC_ARENA_MAX" + +# --- 🐦 Configuration de Flutter --- +FLUTTER_CHANNEL="stable" + +if [ ! -d "flutter" ]; then + echo "--- 📥 Téléchargement de Flutter ($FLUTTER_CHANNEL) ---" + git clone https://github.com/flutter/flutter.git -b $FLUTTER_CHANNEL --depth 1 +else + echo "--- ✨ Flutter déjà présent, mise à jour (pull)... ---" + cd flutter && git pull && cd .. +fi + +# Ajouter Flutter au PATH +export PATH="$(pwd)/flutter/bin:$PATH" + +# --- 🛠️ Préparation de Flutter --- +echo "--- 🛠️ Diagnostic Flutter ---" +flutter doctor -v + +echo "--- 🌐 Activation du Web ---" +flutter config --enable-web + +# --- 📦 Dépendances --- +echo "--- 📦 Récupération des dépendances (Verbeux) ---" +flutter pub get -v + +# --- 🏗️ Build Web --- +echo "--- 🏗️ Construction de l'application Web (Mode Verbeux) ---" +# On ajoute le flag -v à flutter build pour un maximum de détails si ça plante +flutter build web --release -v \ + --web-renderer html \ + --no-tree-shake-icons \ + --dart2js-optimization=O1 \ + --dart-define=HF_TOKEN=$HF_TOKEN \ + --dart-define=ASR_SPACE_URL=$ASR_SPACE_URL + +echo "--- 📂 Vérification du dossier de sortie ---" +ls -lah build/web + +echo "--- ✅ Build terminé avec succès ! ---" diff --git a/setup_android.ps1 b/scripts/setup_android.ps1 similarity index 100% rename from setup_android.ps1 rename to scripts/setup_android.ps1 diff --git a/test_hf.dart b/test_hf.dart deleted file mode 100644 index d7eeb86f..00000000 --- a/test_hf.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:http/http.dart' as http; - -void main() async { - final url = "https://router.huggingface.co/hf-inference/models/openai/whisper-tiny"; - final token = "YOUR_HF_TOKEN_HERE"; - - final dummyWav = [82, 73, 70, 70, 36, 0, 0, 0, 87, 65, 86, 69, 102, 109, 116, 32, 16, 0, 0, 0, 1, 0, 1, 0, 64, 31, 0, 0, 64, 31, 0, 0, 1, 0, 8, 0, 100, 97, 116, 97, 0, 0, 0, 0]; - - try { - final response = await http.post( - Uri.parse(url), - headers: { - 'Content-Type': 'application/octet-stream', - 'Authorization': 'Bearer $token', - }, - body: dummyWav, - ); - print("Status: ${response.statusCode}"); - print("Body: ${response.body.length > 200 ? response.body.substring(0, 200) : response.body}"); - } catch (e) { - print("Exception: $e"); - } -}