3 # Creates a Bitcoin.dmg OSX file from the contrib/BitcoinTemplate.dmg file
5 # Recipe from: http://digital-sushi.org/entry/how-to-create-a-disk-image-installer-for-apple-mac-os-x/
7 # To make a prettier BitcoinTemplate.dmg:
8 # + open (mount) BitcoinTemplate.dmg
9 # + change the file properties, icon positions, background image, etc
10 # + eject, then commit the changed BitcoinTemplate.dmg
16 if [ $(basename $CWD) == "contrib" ]
20 echo "Usage: $0 /path/to/bitcoin/tree"
27 # Create Bitcoin-Qt.app
29 if [ ! -e Makefile ]; then qmake bitcoin-qt.pro; fi
31 macdeployqt Bitcoin-Qt.app
32 # Workaround a bug in macdeployqt: https://bugreports.qt.nokia.com/browse/QTBUG-21913
33 # (when fixed, this won't be necessary)
34 cp /opt/local/lib/db48/libdb_cxx-4.8.dylib Bitcoin-Qt.app/Contents/Frameworks/
35 install_name_tool -id @executable_path/../Frameworks/libdb_cxx-4.8.dylib \
36 Bitcoin-Qt.app/Contents/Frameworks/libdb_cxx-4.8.dylib
37 install_name_tool -change libqt.3.dylib \
38 @executable_path/../Frameworks/libqt.3.dylib \
39 Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt
42 macdeployqt Bitcoin-Qt.app -dmg
46 STATIC=1 make -f makefile.osx