/ buildscripts / osx.sh
osx.sh
1 #!/bin/bash 2 3 # OS X Build script wrapper around the py2app script. 4 # This build can only be generated on OS X. 5 # Requires all build dependencies for Bitmessage 6 # Especially important is OpenSSL installed through brew 7 8 export ARCHFLAGS="-arch i386 -arch x86_64" 9 10 if [[ -z "$1" ]]; then 11 echo "Please supply a version number for this release as the first argument." 12 exit 13 fi 14 15 echo "Creating OS X packages for Bitmessage." 16 17 export PYBITMESSAGEVERSION=$1 18 19 cd src && python2.7 build_osx.py py2app 20 21 if [[ $? = "0" ]]; then 22 hdiutil create -fs HFS+ -volname "Bitmessage" -srcfolder dist/Bitmessage.app dist/bitmessage-v$1.dmg 23 else 24 echo "Problem creating Bitmessage.app, stopping." 25 exit 26 fi