-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup_app_store.py~
executable file
·37 lines (30 loc) · 1.12 KB
/
setup_app_store.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
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",
"CFBundleIdentifier" : "com.barnhouse.maker",
"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, argv_emulation = True)),
name="TheMaker",
**{buildstyle : ['maker.py']}
)