osx.sh 717 B

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