mac
This commit is contained in:
parent
253889dd32
commit
5ab53e2d53
4 changed files with 36 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
||||||
logs/*
|
logs/*
|
||||||
build/*
|
build/*
|
||||||
profiles/*
|
profiles/*
|
||||||
|
tmp/*
|
||||||
irctest.log
|
irctest.log
|
||||||
*.pyc
|
*.pyc
|
5
MACBUILD
Normal file
5
MACBUILD
Normal 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
9
py2app.sh
Executable 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
21
setup-py2app.py
Normal 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'],
|
||||||
|
)
|
Loading…
Reference in a new issue