Skip to content

Commit

Permalink
Merge pull request #116 from ynput/enhancement/windows-icon-resource
Browse files Browse the repository at this point in the history
Setup: ICO file is added only for windows
  • Loading branch information
iLLiCiTiT authored Jun 17, 2024
2 parents 87ee42f + 2fb6578 commit db9a88a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@
"README.md"
]

icon_path = None
mac_icon_path = resources_dir / "AYON.icns"
if IS_WINDOWS:
icon_path = (resources_dir / "AYON.ico").as_posix()
install_requires.extend([
# `pywin32` packages
"win32ctypes",
Expand All @@ -241,9 +244,6 @@
])


icon_path = resources_dir / "AYON.ico"
mac_icon_path = resources_dir / "AYON.icns"

build_exe_options = dict(
build_exe="build/output",
packages=install_requires,
Expand All @@ -265,7 +265,7 @@
"start.py",
base=base,
target_name="ayon",
icon=icon_path.as_posix()
icon=icon_path
),
]
if IS_WINDOWS:
Expand All @@ -274,7 +274,7 @@
"start.py",
base=None,
target_name="ayon_console",
icon=icon_path.as_posix()
icon=icon_path
)
)
build_exe_options["include_msvcr"] = True
Expand All @@ -285,7 +285,6 @@
"app_launcher.py",
base=None,
target_name="app_launcher",
icon=icon_path.as_posix()
)
)

Expand Down

0 comments on commit db9a88a

Please sign in to comment.