File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ """
2+ macOS app bundle script
3+
4+ Usage:
5+ python macos_app.py py2app
6+
7+ On some systems you also need to fix @rpaths for PySide dylibs:
8+
9+ $ otool -L dist/kiwi.app/Contents/Resources/lib/python2.7/lib-dynload/PySide/QtCore.so
10+ $ install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib @executable_path/../Frameworks/libpyside-python2.7.1.2.dylib dist/kiwi.app/Contents/Resources/lib/python2.7/lib-dynload/PySide/QtCore.so
11+ $ install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib @executable_path/../Frameworks/libshiboken-python2.7.1.2.dylib dist/kiwi.app/Contents/Resources/lib/python2.7/lib-dynload/PySide/QtCore.so
12+ $ install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib @executable_path/../Frameworks/libshiboken-python2.7.1.2.dylib dist/kiwi.app/Contents/Resources/lib/python2.7/lib-dynload/PySide/QtGui.so
13+ $ install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib @executable_path/../Frameworks/libpyside-python2.7.1.2.dylib dist/kiwi.app/Contents/Resources/lib/python2.7/lib-dynload/PySide/QtGui.so
14+
15+ """
16+
17+ from setuptools import setup
18+
19+ APP = ['kiwi.py' ]
20+ DATA_FILES = ['megadrive.so' , 'images/pad.png' , 'images/pad2.png' , 'images/pad_big.png' ]
21+
22+ OPTIONS = {
23+ 'argv_emulation' : True ,
24+ 'includes' : ['PySide.QtCore' , 'PySide.QtGui' ],
25+ }
26+
27+ setup (
28+ app = APP ,
29+ data_files = DATA_FILES ,
30+ options = {'py2app' : OPTIONS },
31+ setup_requires = ['py2app' ],
32+ )
You can’t perform that action at this time.
0 commit comments