From c8fa0c4e28419750cf0201128f0309af8fc62b71 Mon Sep 17 00:00:00 2001 From: Atira Odhner Date: Wed, 15 Mar 2017 17:14:37 +0000 Subject: [PATCH] Don't ship the node_modules directory with packages as it's only used for local testing. --- Make.bat | 2 +- pkg/mac/build.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Make.bat b/Make.bat index 026ca16cf..b1bb3cc35 100644 --- a/Make.bat +++ b/Make.bat @@ -244,7 +244,7 @@ REM Main function Ends REM Clean up .pyc, .pyo, pgadmin4.db, config_local.py ECHO Cleaning up unnecessary files... FOR /R "%PGBUILDPATH%\web" %%f in (*.pyc *.pyo) do DEL /q "%%f" - FOR /R "%PGBUILDPATH%\web" %%f in (tests feature_tests __pycache__) do RD /Q /S "%%f" + FOR /R "%PGBUILDPATH%\web" %%f in (tests feature_tests __pycache__ node_modules) do RD /Q /S "%%f" RD /Q /S "%PGBUILDPATH%\web\regression" DEL /q "%PGBUILDPATH%\web\pgadmin4.db" DEL /q "%PGBUILDPATH%\web\config_local.py" diff --git a/pkg/mac/build.sh b/pkg/mac/build.sh index 923e7b90b..80c652e7a 100755 --- a/pkg/mac/build.sh +++ b/pkg/mac/build.sh @@ -169,6 +169,8 @@ _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/ + echo "SERVER_MODE = False" > config_distro.py echo "HELP_PATH = '../../../docs/en_US/html/'" >> config_distro.py echo "DEFAULT_BINARY_PATHS = {" >> config_distro.py