mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
18 lines
522 B
Bash
Executable file
18 lines
522 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 /Developer/Applications/Qt/plugins/imageformats/libq{gif,jpeg,svg,tiff}* ankiqt/imageformats
|
|
echo "building..."
|
|
PYTHONPATH=ankiqt:libanki $PYTHON ankiqt/mac/setup.py bdist_dmg
|