From 5b205b93f7307d2b7f8062101691039e42eec1e3 Mon Sep 17 00:00:00 2001 From: wei Date: Tue, 4 Aug 2026 19:34:53 +0800 Subject: [PATCH] Add macOS icon --- app.py | 3 +-- main.py | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 1cd37b6..72a0a82 100644 --- a/app.py +++ b/app.py @@ -1,5 +1,4 @@ import sys -from _colorize import Theme from pathlib import Path from typing import Callable @@ -243,7 +242,7 @@ class Launcher(QApplication, LauncherObject): def get_main_window(self): return self.main_window - def apply_theme(self, theme: Theme | None=None): + def apply_theme(self, theme=None): if not theme: appearance = self.settings_manager.get("appearance", AppearanceSettings) diff --git a/main.py b/main.py index f30b4a7..9c5f632 100644 --- a/main.py +++ b/main.py @@ -11,6 +11,10 @@ # nuitka-project-if: {OS} == "Windows": # nuitka-project: --windows-console-mode=disable # nuitka-project: --windows-icon-from-ico={MAIN_DIRECTORY}/resources/icons/icon.png +# nuitka-project-if: {OS} == "Darwin": +# nuitka-project: --macos-create-app-bundle +# nuitka-project: --macos-app-icon={MAIN_DIRECTORY}/resources/icons/apple-app-icon.icon +# nuitka-project: --macos-app-name="TapLauncher" import os import sys @@ -43,7 +47,7 @@ def main(): parser = argparse.ArgumentParser() parser.add_argument("-m", "--mode", choices=['lightweight', 'full', 'choice'], default='choice', help="Select a mode (lightweight for TUI, full for GUI, or choice to open a mode-selection window). " - "TUI is not implemented yet.", required=False, deprecated=True) + "TUI is not implemented yet.", required=False) parser.add_argument("-d", "--debug", action="store_true", help="Enable debug mode", default=False) parser.add_argument("-wd", "--work-dir", default=None, help="Work directory")