This commit is contained in:
Stephen Dranger 2011-03-01 21:03:51 -06:00
parent 253889dd32
commit 5ab53e2d53
4 changed files with 36 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
logs/*
build/*
profiles/*
tmp/*
irctest.log
*.pyc

5
MACBUILD Normal file
View file

@ -0,0 +1,5 @@
<Archaemic> setup-py2app.py, which will create the app
<Archaemic> py2app.sh, which runs setup-py2app.py and does cleanup
<Archaemic> when it says that it can't find py2app/apptemplate/prebuilt/main-i386
<Archaemic> you have to cd into prebuilt and ln -s main-fat3 main-i386
<Archaemic> although I suspect that ln -s main-fat main-i386 works better in this case

9
py2app.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
rm -rf build/ dist/
python setup-py2app.py py2app
touch dist/pesterchum.app/Contents/Resources/qt.conf
find dist/pesterchum.app -iname "*_debug" -exec rm -f '{}' \;
rm -rf Pesterchum
mv dist Pesterchum
rm -f pesterchum.dmg
hdiutil create pesterchum.dmg -srcdir Pesterchum -format UDZO

21
setup-py2app.py Normal file
View file

@ -0,0 +1,21 @@
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['pesterchum.py']
DATA_FILES = ['pesterchum.js', 'profiles', 'themes', 'smilies', 'logs']
OPTIONS = {'argv_emulation': False, 'includes': ['sip', 'PyQt4', 'PyQt4.QtCore', 'PyQt4.QtGui'],
'excludes': ['PyQt4.QtDesigner', 'PyQt4.QtNetwork', 'PyQt4.QtOpenGL', 'PyQt4.QtScript', 'PyQt4.QtSql', 'PyQt4.QtTest', 'PyQt4.QtWebKit', 'PyQt4.QtXml', 'PyQt4.phonon'],
'iconfile': 'trayicon32.icns'}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)