diff --git a/osx/make-app.sh b/osx/make-app.sh index d97a678c5a..26a01983d6 100755 --- a/osx/make-app.sh +++ b/osx/make-app.sh @@ -150,19 +150,6 @@ for x in "*.c" "*.pyx" "*.pxd" "constants.pxi" "constants.txt"; do find $LIBDIR/python/xpra/ -name "$x" -print -exec rm "{}" \; | sed "s+$LIBDIR/python/xpra/++g" | xargs -L 1 echo "* " done -if [ "$STRIP_SOURCE" == "1" ]; then - echo "removing py if we have the pyc:" - #only remove ".py" source if we have a binary ".pyc" for it: - for x in `find $LIBDIR/python/xpra -name "*.py" -type f`; do - d="`dirname $x`" - f="`basename $x`" - if [ -r "$d/${f}c" ]; then - echo "* $x" - rm "$x" - fi - done -fi - echo echo "*******************************************************************************" @@ -224,6 +211,21 @@ if [ "$STRIP_NUMPY" == "1" ]; then popd fi + +if [ "$STRIP_SOURCE" == "1" ]; then + echo "removing py if we have the pyc:" + #only remove ".py" source if we have a binary ".pyc" for it: + for x in `find $LIBDIR -name "*.py" -type f`; do + d="`dirname $x`" + f="`basename $x`" + if [ -r "$d/${f}c" ]; then + #echo "* $x" + rm "${x}" + fi + done +fi + + #gst bits expect to find dylibs in Frameworks!? pushd ${CONTENTS_DIR} ln -sf Resources/lib Frameworks