-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpy2app_setup.py
52 lines (48 loc) · 1.58 KB
/
py2app_setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
This is a setup.py script generated by py2applet
Usage:
python py2app_setup.py py2app
"""
import sys
from setuptools import setup
app_name = 'K40 Whisperer'
app_version = "0.64"
app_copyright = u'Copyright © 2017-2019, Scorch Works, GNU General Public License'
main_script = 'k40_whisperer.py'
url = 'https://github.com/stephenhouser/k40-whisperer'
if sys.platform == 'darwin':
extra_options = dict(
setup_requires=['py2app'],
#python_requires='>=2.7, <3',
options=dict(py2app = {
'iconfile': 'emblem.icns',
'includes': ['lxml.etree', 'lxml._elementpath', 'gzip'],
'resources': ['right.png','left.png','up.png','down.png',
'UL.png','UR.png','LR.png','LL.png','CC.png'],
'plist': {
'CFBundleName': app_name,
'CFBundleDisplayName': app_name,
'CFBundleGetInfoString': "Scorch Works",
'CFBundleIdentifier': "com.scorchworks.osx.k40-whisperer",
'CFBundleVersion': app_version,
'CFBundleShortVersionString': app_version,
'NSHumanReadableCopyright': app_copyright,
'NSHighResolutionCapable': True
}
})
)
else:
extra_options = dict(
# Normally unix-like platforms will use "setup.py install"
# and install the main script as such
scripts=[mainscript],
)
setup(
name=app_name,
app=[main_script],
version=app_version,
url=url,
**extra_options
)