Anki/mac/make_local.sh
Damien Elmes b53736167a fix osx build on python2.7/qt4.7
will roll this back if there are problems with the cocoa port
2010-10-23 14:01:08 +09:00

16 lines
470 B
Bash
Executable file

#!/bin/bash
PYTHON=/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
if [ "x$debug" = "x" ]; then
echo "cleaning up..."
rm -rf build dist
fi
find . -name '*.pyc' -exec rm {} \;
echo "adding image formats..."
rm -rf ankiqt/imageformats
mkdir ankiqt/imageformats
cp -Rvf /Developer/Applications/Qt/plugins/imageformats/libq{gif,jpeg,svg,tiff}* ankiqt/imageformats
echo "building..."
PYTHONPATH=ankiqt:libanki $PYTHON ankiqt/mac/setup.py bdist_dmg