mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Use config_distro.py for all settings, and don't create/overwrite config_local.py. Partly fixes #1849
This commit is contained in:
committed by
Dave Page
parent
19df1e3f4b
commit
a1c0042a1e
3
Make.bat
3
Make.bat
@@ -247,9 +247,6 @@ GOTO:EOF
|
|||||||
ECHO HELP_PATH = '../../../docs/en_US/html/' >> "%PGBUILDPATH%\web\config_distro.py"
|
ECHO HELP_PATH = '../../../docs/en_US/html/' >> "%PGBUILDPATH%\web\config_distro.py"
|
||||||
ECHO MINIFY_HTML = False >> "%PGBUILDPATH%\web\config_distro.py"
|
ECHO MINIFY_HTML = False >> "%PGBUILDPATH%\web\config_distro.py"
|
||||||
|
|
||||||
ECHO Creating config_local.py
|
|
||||||
ECHO # Add any configuration changes to this file. > "%PGBUILDPATH%\web\config_local.py"
|
|
||||||
|
|
||||||
ECHO Building docs...
|
ECHO Building docs...
|
||||||
MKDIR "%PGBUILDPATH%\docs\en_US\html"
|
MKDIR "%PGBUILDPATH%\docs\en_US\html"
|
||||||
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
|
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
|
||||||
|
|||||||
@@ -156,9 +156,9 @@ _complete_bundle() {
|
|||||||
cp -r $SOURCEDIR/web "$BUILDROOT/$APP_BUNDLE_NAME/Contents/Resources/" || exit 1
|
cp -r $SOURCEDIR/web "$BUILDROOT/$APP_BUNDLE_NAME/Contents/Resources/" || exit 1
|
||||||
cd "$BUILDROOT/$APP_BUNDLE_NAME/Contents/Resources/web"
|
cd "$BUILDROOT/$APP_BUNDLE_NAME/Contents/Resources/web"
|
||||||
rm -f pgadmin4.db config_local.*
|
rm -f pgadmin4.db config_local.*
|
||||||
echo "SERVER_MODE = False" > config_local.py
|
echo "SERVER_MODE = False" > config_distro.py
|
||||||
echo "MINIFY_HTML = False" >> config_local.py
|
echo "MINIFY_HTML = False" >> config_distro.py
|
||||||
echo "HELP_PATH = '../../../docs/en_US/html/'" >> config_local.py
|
echo "HELP_PATH = '../../../docs/en_US/html/'" >> config_distro.py
|
||||||
|
|
||||||
# Remove the .pyc files if any
|
# Remove the .pyc files if any
|
||||||
cd "$BUILDROOT/$APP_BUNDLE_NAME"
|
cd "$BUILDROOT/$APP_BUNDLE_NAME"
|
||||||
|
|||||||
Reference in New Issue
Block a user