Mercurial > hg > easyhg
comparison deploy/osx/deploy.sh @ 256:f649f6066e4d
* OS/X deployment fixes
author | Chris Cannam |
---|---|
date | Wed, 12 Jan 2011 15:02:11 +0000 |
parents | 41ae9544a255 |
children | 7057a4dcac3e |
comparison
equal
deleted
inserted
replaced
255:12df2232e40a | 256:f649f6066e4d |
---|---|
16 > "$app".app/Contents/Info.plist | 16 > "$app".app/Contents/Info.plist |
17 | 17 |
18 echo "Done: check $app.app for sanity please" | 18 echo "Done: check $app.app for sanity please" |
19 | 19 |
20 echo | 20 echo |
21 echo "I expect you to have already copied QtCore, QtNetwork and QtGui to " | |
22 echo "$app.app/Contents/Frameworks and PyQt4/QtCore.so and PyQt4/QtGui.so to " | |
23 echo "$app.app/Contents/MacOS -- expect errors to follow if they're missing" | |
24 echo | |
25 | |
26 echo "Fixing up loader paths in binaries..." | |
27 | |
28 install_name_tool -id QtCore "$app.app/Contents/Frameworks/QtCore" | |
29 install_name_tool -id QtGui "$app.app/Contents/Frameworks/QtGui" | |
30 install_name_tool -id QtNetwork "$app.app/Contents/Frameworks/QtNetwork" | |
31 | |
32 install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore "$app.app/Contents/MacOS/$app" | |
33 install_name_tool -change QtGui.framework/Versions/4/QtGui @executable_path/../Frameworks/QtGui "$app.app/Contents/MacOS/$app" | |
34 install_name_tool -change QtNetwork.framework/Versions/4/QtNetwork @executable_path/../Frameworks/QtNetwork "$app.app/Contents/MacOS/$app" | |
35 | |
36 install_name_tool -change QtCore.framework/Versions/4/QtCore @loader_path/QtCore "$app.app/Contents/Frameworks/QtGui" | |
37 install_name_tool -change QtCore.framework/Versions/4/QtCore @loader_path/QtCore "$app.app/Contents/Frameworks/QtNetwork" | |
38 | |
39 install_name_tool -change QtCore.framework/Versions/4/QtCore @loader_path/../../Frameworks/QtCore "$app.app/Contents/MacOS/PyQt4/QtCore.so" | |
40 install_name_tool -change QtCore.framework/Versions/4/QtCore @loader_path/../../Frameworks/QtCore "$app.app/Contents/MacOS/PyQt4/QtGui.so" | |
41 install_name_tool -change QtCore.framework/Versions/4/QtCore @loader_path/../../Frameworks/QtGui "$app.app/Contents/MacOS/PyQt4/QtGui.so" | |
42 | |
43 echo "Done: be sure to run the app and see that it works!" | |
44 | |
45 echo | |
21 echo "Making dmg..." | 46 echo "Making dmg..." |
22 | 47 |
23 hdiutil create -srcfolder "$app".app "$app"-"$version".dmg -volname "$app"-"$version" | 48 hdiutil create -srcfolder "$app".app "$app"-"$version".dmg -volname "$app"-"$version" |
24 | 49 |
25 echo "Done" | 50 echo "Done" |