-
Notifications
You must be signed in to change notification settings - Fork 98
/
buildapp.py
executable file
·25 lines (23 loc) · 1.46 KB
/
buildapp.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
#!/usr/bin/env python2
#
# This builds an .app out of Twine for use with OS X.
# Call this with this command line: buildapp.py py2app
from distutils.core import setup
from version import versionString
import py2app # pylint: disable=unused-import,import-error
setup(app = ['app.py'], options = dict(py2app = dict( argv_emulation = True,
iconfile = 'appicons/app.icns', \
resources = ['icons', 'targets', 'appicons/doc.icns'], \
plist = dict( \
CFBundleShortVersionString = versionString, \
CFBundleName = 'Twine', \
CFBundleSignature = 'twee', \
CFBundleIconFile = 'app.icns',\
CFBundleGetInfoString = 'An open-source tool for telling interactive stories',\
CFBundleDocumentTypes = [dict( \
CFBundleTypeIconFile = 'doc.icns',\
CFBundleTypeName = 'Twine story',\
CFBundleTypeRole = 'Editor',\
CFBundleTypeExtensions=["tws"]\
)],\
NSHumanReadableCopyright = 'GNU General Public License v3'))))