1234567891011121314151617181920212223242526 |
- #!/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'))))
|