forked from geraldspreer/the-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·36 lines (29 loc) · 1.04 KB
/
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
from distutils.core import setup
import sys
import makerVersion
plist = {
'CFBundleDocumentTypes': [
{
'CFBundleTypeExtensions': ['makerProject'],
'CFBundleTypeIconFile': 'maker.icns',
'CFBundleTypeName': 'TheMaker Project',
'CFBundleTypeRole': 'Editor',
'LSTypeIsPackage': True,
},
],
"LSApplicationCategoryType" : "public.app-category.developer-tools",
"CFBundleVersion" : makerVersion.appVersion,
"CFBundleDisplayName" : "TheMaker",
"NSHumanReadableCopyright" : "Gerald Spreer"
}
if sys.platform == 'darwin':
import py2app
buildstyle = 'app'
print "#---------------------------------------------------------"
print "building with py2app version: ", py2app.__version__
print "#---------------------------------------------------------"
setup(
options=dict(py2app=dict(plist=plist)),
name="TheMaker",
**{buildstyle : ['maker.py']}
)