Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (16 sloc) 632 Bytes
#!/bin/bash
PYTHON=/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
rsync -av ../lib/ libanki/
rsync -av ../qt/ ankiqt/
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 /usr/local/Trolltech/Qt-4.7.1/plugins/imageformats/libq{gif,jpeg,svg,tiff}.dylib 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
Something went wrong with that request. Please try again.