Browse Source

Mac releases use macdeployqtplus

pull/145/head
Gavin Andresen 13 years ago
parent
commit
f6aacbfe6d
  1. 32
      contrib/Bitcoin.app/Contents/Info.plist
  2. 0
      contrib/Bitcoin.app/Contents/MacOS/.higit
  3. BIN
      contrib/Bitcoin.app/Contents/Resources/BitcoinAppIcon.icns
  4. 47
      contrib/create_osx_dmg.sh
  5. 2
      contrib/macdeploy/notes.txt
  6. 8
      doc/release-process.txt

32
contrib/Bitcoin.app/Contents/Info.plist

@ -1,32 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>Bitcoin</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>bitcoin</string>
<key>CFBundleIdentifier</key>
<string>org.bitcoin.bitcoin</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Bitcoin</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.4.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>400</string>
<key>LSMinimumSystemVersion</key>
<string>10.5</string>
<key>CFBundleIconFile</key>
<string>BitcoinAppIcon.icns</string>
<key>LSMultipleInstancesProhibited</key>
<true/>
</dict>
</plist>

0
contrib/Bitcoin.app/Contents/MacOS/.higit

BIN
contrib/Bitcoin.app/Contents/Resources/BitcoinAppIcon.icns

Binary file not shown.

47
contrib/create_osx_dmg.sh

@ -1,47 +0,0 @@
#!/usr/bin/env bash
#
# Creates a Bitcoin.dmg OSX file from the contrib/BitcoinTemplate.dmg file
#
# Recipe from: http://digital-sushi.org/entry/how-to-create-a-disk-image-installer-for-apple-mac-os-x/
#
# To make a prettier BitcoinTemplate.dmg:
# + open (mount) BitcoinTemplate.dmg
# + change the file properties, icon positions, background image, etc
# + eject, then commit the changed BitcoinTemplate.dmg
#
CWD=$(pwd)
if [ $# -lt 1 ]; then
if [ $(basename $CWD) == "contrib" ]
then
TOP=$(dirname $CWD)
else
echo "Usage: $0 /path/to/bitcoin/tree"
exit 1
fi
else
TOP=$1
fi
# Create Bitcoin-Qt.app
cd "$TOP"
if [ ! -e Makefile ]; then qmake bitcoin-qt.pro; fi
make
macdeployqt Bitcoin-Qt.app
# Workaround a bug in macdeployqt: https://bugreports.qt.nokia.com/browse/QTBUG-21913
# (when fixed, this won't be necessary)
cp /opt/local/lib/db48/libdb_cxx-4.8.dylib Bitcoin-Qt.app/Contents/Frameworks/
install_name_tool -id @executable_path/../Frameworks/libdb_cxx-4.8.dylib \
Bitcoin-Qt.app/Contents/Frameworks/libdb_cxx-4.8.dylib
install_name_tool -change libqt.3.dylib \
@executable_path/../Frameworks/libqt.3.dylib \
Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt
# Create a .dmg
macdeployqt Bitcoin-Qt.app -dmg
# Compile bitcoind
cd "$TOP/src"
STATIC=1 make -f makefile.osx

2
contrib/macdeploy/notes.txt

@ -6,7 +6,7 @@ You will need the appscript package for the fancy disk image creation to work.
Install it by invoking "sudo easy_install appscript".
Ths script should be invoked in the target directory like this:
$source_dir/contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -add-qt-tr de,ru -dmg -fancy $source_dir/contrib/macdeploy/fancy.plist
$source_dir/contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -add-qt-tr de,es,ru -dmg -fancy $source_dir/contrib/macdeploy/fancy.plist
During the process, the disk image window will pop up briefly where the fancy
settings are applied. This is normal, please do not interfere.

8
doc/release-process.txt

@ -74,7 +74,13 @@
* perform Mac build
TODO: document process
qmake USE_SSL=1 USE_UPNP=1 bitcoin-qt.pro
make
export QTDIR=/opt/local/share/qt4
contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -add-qt-tr de,ru -dmg -fancy contrib/macdeploy/fancy.plist
Build output expected:
Bitcoin-Qt.dmg
* upload source and builds to SourceForge

Loading…
Cancel
Save