diff --git a/assets/icon.ico b/assets/icon.ico new file mode 100644 index 0000000..e02eb21 Binary files /dev/null and b/assets/icon.ico differ diff --git a/src/app.py b/src/app.py index 94c833b..0ca76dd 100644 --- a/src/app.py +++ b/src/app.py @@ -142,7 +142,11 @@ class StickyCanvasApp: # ── İkon ──────────────────────────────────────────────────────── def _icon_path(self) -> Optional[str]: - base = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + # PyInstaller bundle'da sys._MEIPASS kullan + if getattr(sys, 'frozen', False): + base = sys._MEIPASS + else: + base = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) p = os.path.join(base, "assets", "icon.png") return p if os.path.exists(p) else None