diff --git a/app.py b/app.py index 72a0a82..a8d3779 100644 --- a/app.py +++ b/app.py @@ -1,3 +1,4 @@ +import platform import sys from pathlib import Path from typing import Callable @@ -66,7 +67,7 @@ class Launcher(QApplication, LauncherObject): move_window_to_center(self.main_window) # Set icon - if self.icon_path.exists(): + if self.icon_path.exists() and platform.system().lower() != "darwin": self.setWindowIcon(QIcon(self.icon_path.as_posix())) else: self.logger.error("No icon found.") diff --git a/main.py b/main.py index 9c5f632..5adf120 100644 --- a/main.py +++ b/main.py @@ -13,7 +13,7 @@ # 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-icon={MAIN_DIRECTORY}/resources/icons/apple-app-icon-default.png # nuitka-project: --macos-app-name="TapLauncher" import os diff --git a/resources/icons/apple-app-icon-default.png b/resources/icons/apple-app-icon-default.png new file mode 100644 index 0000000..0d3dc2c Binary files /dev/null and b/resources/icons/apple-app-icon-default.png differ diff --git a/resources/icons/apple-app-icon.icon/Assets/icon.png b/resources/icons/apple-app-icon.icon/Assets/icon.png new file mode 100644 index 0000000..cb30a8b Binary files /dev/null and b/resources/icons/apple-app-icon.icon/Assets/icon.png differ diff --git a/resources/icons/apple-app-icon.icon/icon.json b/resources/icons/apple-app-icon.icon/icon.json new file mode 100644 index 0000000..09327fa --- /dev/null +++ b/resources/icons/apple-app-icon.icon/icon.json @@ -0,0 +1,36 @@ +{ + "fill" : { + "automatic-gradient" : "srgb:0.41535,0.63458,1.00000,1.00000" + }, + "groups" : [ + { + "layers" : [ + { + "image-name" : "icon.png", + "name" : "icon", + "position" : { + "scale" : 1, + "translation-in-points" : [ + 0, + -15.75 + ] + } + } + ], + "shadow" : { + "kind" : "neutral", + "opacity" : 0.5 + }, + "translucency" : { + "enabled" : true, + "value" : 0.5 + } + } + ], + "supported-platforms" : { + "circles" : [ + "watchOS" + ], + "squares" : "shared" + } +} \ No newline at end of file