build.sh 615 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. set -e
  3. if [ -z "${SANDBOX_PATH}" ]; then
  4. echo "you must set SANDBOX_PATH to point to the built LibreVideoConverter sandbox"
  5. exit 1
  6. fi
  7. if [ -z "${BKIT_PATH}" ]; then
  8. echo "you must set BKIT_PATH to point to the LibreVideoConverter binary kit"
  9. exit
  10. fi
  11. export MACOSX_DEPLOYMENT_TARGET=10.6
  12. "${SANDBOX_PATH}/Frameworks/Python.framework/Versions/2.7/bin/python" setup.py develop
  13. "${SANDBOX_PATH}/Frameworks/Python.framework/Versions/2.7/bin/python" setup.py py2app
  14. if [ "$1" = "--sign" ]; then
  15. source sign.sh
  16. fi
  17. if [ "$2" = "--installer" ] ; then
  18. source build_installer.sh
  19. fi