2013-06-15 21:09:15 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# OS X Build script wrapper around the py2app script.
|
2015-01-14 15:19:06 +01:00
|
|
|
# This build can only be generated on OS X.
|
2013-06-15 21:09:15 +02:00
|
|
|
# Requires all build dependencies for Bitmessage
|
2015-01-14 15:19:06 +01:00
|
|
|
# Especially important is OpenSSL installed through brew
|
2013-06-15 21:09:15 +02:00
|
|
|
|
|
|
|
export ARCHFLAGS="-arch i386 -arch x86_64"
|
|
|
|
|
|
|
|
if [[ -z "$1" ]]; then
|
|
|
|
echo "Please supply a version number for this release as the first argument."
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2013-08-25 10:43:32 +02:00
|
|
|
echo "Creating OS X packages for Bitmessage."
|
2013-06-15 21:09:15 +02:00
|
|
|
|
2015-11-14 13:11:33 +01:00
|
|
|
export PYBITMESSAGEVERSION=$1
|
|
|
|
|
2013-09-27 16:28:01 +02:00
|
|
|
cd src && python2.7 build_osx.py py2app
|
2013-06-15 21:09:15 +02:00
|
|
|
|
|
|
|
if [[ $? = "0" ]]; then
|
2013-08-25 10:43:32 +02:00
|
|
|
hdiutil create -fs HFS+ -volname "Bitmessage" -srcfolder dist/Bitmessage.app dist/bitmessage-v$1.dmg
|
2013-06-15 21:09:15 +02:00
|
|
|
else
|
|
|
|
echo "Problem creating Bitmessage.app, stopping."
|
|
|
|
exit
|
|
|
|
fi
|