fix: auto-update corrige — tag, robustesse UpdateManager, .env securise

- Supprime .env du tracking git (token expose) + ajout .gitignore
- UpdateManager : timeout download 60s, validation root par version.json,
  erreur si fichiers requis manquants, drain response sur redirect,
  gestion redirects 3xx, protection double-clic, logging erreurs
- UpdateBanner : log erreur dans le .catch au lieu de silencieux
- release.sh : tag cree localement avant push pour eviter desync

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
sorlinv
2026-02-27 10:28:55 +01:00
parent 725ab74d1f
commit 68815645a4
5 changed files with 61 additions and 19 deletions

View File

@@ -92,7 +92,9 @@ const UpdateBanner = {
obj_btn_close.classList.add("d-none");
window.api.apply_update(UpdateBanner.str_pending_tag)
.catch(() => {});
.catch((obj_err) => {
console.error("UpdateBanner: apply_update echoue :", obj_err);
});
},
_show_progress: (str_step, nb_percent) => {