source: orbit/python/scripts/build-orbit-app.sh @ cb467b5

Last change on this file since cb467b5 was cb467b5, checked in by Steve Castellotti <sc@…>, 7 years ago
  • continued merge of Orbit from Jigsaw
  • Property mode set to 100755
File size: 2.8 KB
Line 
1# Clean existing build and packaging directories
2rm -rf build dist
3
4#export PATH=$PATH:/opt/local/bin
5
6# Package new application
7/opt/local/bin/python2.7 setup-orbit.py2app.py py2app | grep -v copying | grep -v creating | grep -v byte-compiling | grep -v strip
8#python2.7 setup-orbit.py2app.py py2app | grep -v copying | grep -v creating | grep -v byte-compiling | grep -v strip
9#python setup.py2app.py py2app
10#python2.7 PuzzleboxJigsaw.bundlebuilder.spec build
11#/opt/local/bin/cxfreeze-2.7 jigsaw-gui.py --compress --target-dir dist --base-name Console --icon=images/puzzlebox.icns -s
12
13
14# Copy data files
15cp -r /opt/local/lib/Resources/qt_menu.nib \
16        dist/Puzzlebox\ Orbit.app/Contents/Resources/
17
18cp -r images \
19        dist/Puzzlebox\ Orbit.app/Contents/Resources
20
21
22#rm -f build/Puzzlebox\ Jigsaw.app/Contents/Resources/Puzzlebox/Synapse
23#mv build/Puzzlebox\ Jigsaw.app/Contents/Resources/Synapse build/Puzzlebox\ Jigsaw.app/Contents/Resources/Puzzlebox/
24
25# Remove images as they appear to be breaking something
26#rm -rf dist/Puzzlebox\ Jigsaw.app/Contents/Resources/images/*
27
28
29# Avoid error in which Qt libraries are loaded twice
30# and configure library paths for Qt image PlugIns
31#echo '[Paths]' > dist/Puzzlebox\ Orbit.app/Contents/Resources/qt.conf
32#echo '  Plugins=PlugIns' >> dist/Puzzlebox\ Orbit.app/Contents/Resources/qt.conf
33
34mkdir dist/Puzzlebox\ Orbit.app/Contents/PlugIns
35cp -r /opt/local/share/qt4/plugins/imageformats dist/Puzzlebox\ Orbit.app/Contents/PlugIns
36
37#find dist/Puzzlebox\ Jigsaw.app/Contents/PlugIns -type f -exec otool -L {} \;
38
39find dist/Puzzlebox\ Orbit.app/Contents/PlugIns -type f -exec install_name_tool -change /opt/local/lib/libQtGui.4.dylib @executable_path/../Frameworks/libQtGui.4.dylib {} \;
40find dist/Puzzlebox\ Orbit.app/Contents/PlugIns -type f -exec install_name_tool -change /opt/local/lib/libQtCore.4.dylib @executable_path/../Frameworks/libQtCore.4.dylib {} \;
41find dist/Puzzlebox\ Orbit.app/Contents/PlugIns -type f -exec install_name_tool -change /opt/local/lib/libQtXml.4.dylib @executable_path/../Frameworks/libQtXml.4.dylib {} \;
42find dist/Puzzlebox\ Orbit.app/Contents/PlugIns -type f -exec install_name_tool -change /opt/local/lib/libQtSvg.4.dylib @executable_path/../Frameworks/libQtSvg.4.dylib {} \;
43find dist/Puzzlebox\ Orbit.app/Contents/PlugIns -type f -exec install_name_tool -change /opt/local/lib/libjpeg.8.dylib @executable_path/../Frameworks/libjpeg.8.dylib {} \;
44find dist/Puzzlebox\ Orbit.app/Contents/PlugIns -type f -exec install_name_tool -change /opt/local/lib/libmng.1.dylib @executable_path/../Frameworks/libmng.1.dylib {} \;
45find dist/Puzzlebox\ Orbit.app/Contents/PlugIns -type f -exec install_name_tool -change /opt/local/lib/libtiff.3.dylib @executable_path/../Frameworks/libtiff.3.dylib {} \;
46
47find dist/Puzzlebox\ Orbit.app/Contents/PlugIns -type f -exec otool -L {} \; | grep opt
Note: See TracBrowser for help on using the repository browser.