From 6abb906b2041a76e18157082bbcc9c20f7d136dd Mon Sep 17 00:00:00 2001 From: Dave Page Date: Fri, 17 Mar 2017 12:21:15 +0000 Subject: [PATCH] Remove test related files from the mac appbundle. --- pkg/mac/build.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkg/mac/build.sh b/pkg/mac/build.sh index 80c652e7a..6dc45ee90 100755 --- a/pkg/mac/build.sh +++ b/pkg/mac/build.sh @@ -118,7 +118,12 @@ _create_python_virtualenv() { ln -s $FULLPATH $FILE fi done - + + # Remove tests + cd site-packages + find . -name "test" -type d -exec rm -rf "{}" \; + find . -name "tests" -type d -exec rm -rf "{}" \; + # Move the python directory to python so that the private environment path is found by the application. if test -d $DIR_PYMODULES_PATH; then mv $DIR_PYMODULES_PATH $DIR_PYMODULES_PATH/../python @@ -169,7 +174,10 @@ _complete_bundle() { cp -r $SOURCEDIR/web "$BUILDROOT/$APP_BUNDLE_NAME/Contents/Resources/" || exit 1 cd "$BUILDROOT/$APP_BUNDLE_NAME/Contents/Resources/web" rm -f pgadmin4.db config_local.* - rm -rf node_modules/ + rm -rf karma.conf.js package.json node_modules/ regression/ + find . -name "tests" -type d -exec rm -rf "{}" \; + find . -name "feature_tests" -type d -exec rm -rf "{}" \; + find . -name ".DS_Store" -exec rm -f "{}" \; echo "SERVER_MODE = False" > config_distro.py echo "HELP_PATH = '../../../docs/en_US/html/'" >> config_distro.py