diff --git a/GitUpdateChecker.exe b/GitUpdateChecker.exe index 6f300f2..0e851f3 100644 Binary files a/GitUpdateChecker.exe and b/GitUpdateChecker.exe differ diff --git a/build.bat b/build.bat index 5d11f8d..c0205a1 100644 --- a/build.bat +++ b/build.bat @@ -19,10 +19,13 @@ if errorlevel 1 ( pip install pyinstaller ) +echo [*] Conversion icon.png -> icon.ico... +python -c "from PIL import Image; img = Image.open('icon.png'); img.save('icon.ico', format='ICO', sizes=[(256,256),(128,128),(64,64),(32,32),(16,16)])" + echo [*] Compilation en cours... echo. -pyinstaller --onefile --noconsole --name "GitUpdateChecker" --icon=NONE git_updater.py +pyinstaller --onefile --noconsole --name "GitUpdateChecker" --icon=icon.ico git_updater.py echo. if exist "dist\GitUpdateChecker.exe" ( diff --git a/git_updater.py b/git_updater.py index 4e1f4fd..28da6be 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.7" +VERSION = "0.5.8" import subprocess import sys @@ -484,6 +484,16 @@ class App(tk.Tk): self.repos_config = load_repos() self.repo_results = [] + # Icône de la fenêtre (barre de titre + taskbar) + self._app_icon = None + icon_path = get_exe_dir() / "icon.png" + if icon_path.exists(): + try: + self._app_icon = tk.PhotoImage(file=str(icon_path)) + self.iconphoto(True, self._app_icon) + except Exception: + self._app_icon = None + log.info(f"=== Demarrage Git Update Checker v{VERSION} ===") self._cleanup_old_exe() self._build_ui() @@ -524,6 +534,19 @@ class App(tk.Tk): # Header header = ttk.Frame(self) header.pack(fill="x", padx=15, pady=(15, 5)) + + # Icône dans le coin haut gauche (redimensionnée à 32x32) + if self._app_icon: + try: + icon_small = tk.PhotoImage(file=str(get_exe_dir() / "icon.png")).subsample( + max(1, self._app_icon.width() // 32), + max(1, self._app_icon.height() // 32), + ) + self._icon_small = icon_small # garder la référence + ttk.Label(header, image=icon_small, style="TLabel").pack(side="left", padx=(0, 8)) + except Exception: + pass + ttk.Label(header, text=f"Git Update Checker v{VERSION}", style="Title.TLabel").pack(side="left") self.status_label = ttk.Label(header, text="Verification en cours...", style="Status.TLabel") self.status_label.pack(side="right") diff --git a/icon.ico b/icon.ico new file mode 100644 index 0000000..e43fc52 Binary files /dev/null and b/icon.ico differ diff --git a/icon.png b/icon.png index 04970b9..b83e484 100644 Binary files a/icon.png and b/icon.png differ diff --git a/version.txt b/version.txt index d3532a1..659914a 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.5.7 +0.5.8