Skip to content

Commit

Permalink
#231: Add icon to mac app
Browse files Browse the repository at this point in the history
  • Loading branch information
ataffanel committed Sep 25, 2020
1 parent a7d0ff9 commit 5f6d72e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Binary file added icon-256.icns
Binary file not shown.
16 changes: 11 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,25 @@
import os
import platform

if sys.argv[1] in ('build', 'bdist_msi', 'bdist_mac'):
if sys.argv[1] in ('build', 'bdist_msi', 'bdist_mac', 'bdist_dmg'):
from cx_Freeze import setup, Executable # noqa

cxfreeze_options = {
'options': {
'build_exe': {'includes': ['numpy.core._methods',
'build_exe': {
'includes': ['numpy.core._methods',
'numpy.lib.format',
'pyqtgraph.debug',
'pyqtgraph.ThreadsafeTimer',
],
'include_files': [],
'packages': ['asyncio'],
'excludes': ['tkinter']}
'include_files': [],
'packages': ['asyncio'],
'excludes': ['tkinter']
},
'bdist_mac': {
'iconfile': 'icon-256.icns',
'bundle_name': 'Crazyflie client',
},
},
'executables': [Executable("bin/cfclient", icon='bitcraze.ico')],
}
Expand Down

0 comments on commit 5f6d72e

Please sign in to comment.