Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 45 lines (37 sloc) 1.1 KB
#!/usr/bin/python
"""
Script for building the example.
Usage:
python setup.py py2app
"""
from distutils.core import setup
import py2app
from glob import glob
version = "0.0.14" # update in Cache.py as well, for the User-Agent string
plist = dict(
CFBundleName="Shelf",
NSMainNibFile="MainMenu",
NSPrincipalClass='PyShelfApplication',
CFBundleIdentifier="org.jerakeen.pyshelf", # historical
CFBundleShortVersionString=version,
CFBundleVersion=version,
NSHumanReadableCopyright="Copyright 2008 Tom Insam",
NSAppleScriptEnabled=True,
CFBundleURLTypes=[
dict(
CFBundleURLName='Shelf callback',
CFBundleURLSchemes=['shelf'],
)
],
# sparkle appcast url, for auto-updates
SUFeedURL="http://jerakeen.org/code/shelf/appcast/"
)
setup(
app=["main.py",],
data_files= glob("resources/*.nib") + glob("resources/*.html") + glob("resources/*.gif") + glob("*.py") + glob("*/*.py") + glob("resources/*.css") + glob("resources/*.png"),
options=dict(py2app=dict(
plist=plist,
iconfile="resources/Icon.icns",
frameworks=glob("*.framework"),
)),
)