diff --git a/GitUpdateChecker.exe b/GitUpdateChecker.exe index 0e851f3..b518df1 100644 Binary files a/GitUpdateChecker.exe and b/GitUpdateChecker.exe differ diff --git a/git_updater.py b/git_updater.py index 28da6be..94fe37b 100644 --- a/git_updater.py +++ b/git_updater.py @@ -5,7 +5,7 @@ Accès lecture seule uniquement (fetch/pull/checkout, jamais de push). Tous les chemins sont relatifs à l'emplacement de l'exécutable. """ -VERSION = "0.5.8" +VERSION = "0.5.9" import subprocess import sys @@ -199,6 +199,16 @@ def do_self_update(): log.info(f"Auto-update: telecharge {total_bytes} octets -> {exe_new_path.name}") + # Supprimer le "Mark of the Web" (Zone.Identifier) ajouté par Windows sur les + # fichiers téléchargés via HTTP, qui bloquerait le chargement des DLL au lancement. + try: + os.remove(str(exe_new_path) + ":Zone.Identifier") + log.info("Auto-update: Zone.Identifier supprime") + except FileNotFoundError: + pass # Pas de marque, rien à faire + except OSError as e: + log.warning(f"Auto-update: impossible de supprimer Zone.Identifier: {e}") + except (urllib.error.URLError, OSError) as e: log.error(f"Auto-update: echec telechargement: {e}") if exe_new_path.exists(): diff --git a/version.txt b/version.txt index 659914a..416bfb0 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.5.8 +0.5.9