mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
19 lines
632 B
Bash
Executable file
19 lines
632 B
Bash
Executable file
#!/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
|