mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-07-07 04:53:25 -05:00
Use Robocopy only to copy web directories, and XCOPY for all other operations.
This commit is contained in:
parent
0010935707
commit
d2efee5943
20
Make.bat
20
Make.bat
|
@ -158,10 +158,8 @@ REM Main build sequence Ends
|
|||
REM Note that we must use virtualenv.exe here, as the venv module doesn't allow python.exe to relocate.
|
||||
"%PGADMIN_PYTHON_DIR%\Scripts\virtualenv.exe" venv
|
||||
|
||||
ROBOCOPY /S "%PGADMIN_PYTHON_DIR%\DLLs" "%TMPDIR%\venv\DLLs" > nul
|
||||
CALL :CHECK_ROBOCOPY_ERROR
|
||||
ROBOCOPY /S "%PGADMIN_PYTHON_DIR%\Lib" "%TMPDIR%\venv\Lib" > nul
|
||||
CALL :CHECK_ROBOCOPY_ERROR
|
||||
XCOPY /S /I /E /H /Y "%PGADMIN_PYTHON_DIR%\DLLs" "%TMPDIR%\venv\DLLs" > nul || EXIT /B 1
|
||||
XCOPY /S /I /E /H /Y "%PGADMIN_PYTHON_DIR%\Lib" "%TMPDIR%\venv\Lib" > nul || EXIT /B 1
|
||||
|
||||
ECHO Activating virtual environment - %TMPDIR%\venv...
|
||||
CALL "%TMPDIR%\venv\Scripts\activate" || EXIT /B 1
|
||||
|
@ -185,8 +183,7 @@ REM Main build sequence Ends
|
|||
%PGADMIN_PYTHON_DIR%\python -c "import zipfile; z = zipfile.ZipFile('python-embedded.zip', 'r'); z.extractall('../win-build/python/')" || EXIT /B 1
|
||||
|
||||
ECHO Copying site-packages...
|
||||
ROBOCOPY /S "%TMPDIR%\venv\Lib\site-packages" "%BUILDROOT%\python\Lib\site-packages" > nul
|
||||
CALL :CHECK_ROBOCOPY_ERROR
|
||||
XCOPY /S /I /E /H /Y "%TMPDIR%\venv\Lib\site-packages" "%BUILDROOT%\python\Lib\site-packages" > nul || EXIT /B 1
|
||||
|
||||
REM NOTE: There is intentionally no space after "site" in the line below, to prevent Python barfing if there's one in the file
|
||||
ECHO import site>> "%BUILDROOT%\python\python%PYTHON_MAJOR%%PYTHON_MINOR%._pth"
|
||||
|
@ -260,10 +257,8 @@ REM Main build sequence Ends
|
|||
RD /Q /S "%BUILDROOT%\docs\en_US\html\_sources" 1> nul 2>&1
|
||||
|
||||
ECHO Staging runtime components...
|
||||
ROBOCOPY /S "%WD%\runtime\assets" "%BUILDROOT%\runtime\assets" > nul
|
||||
CALL :CHECK_ROBOCOPY_ERROR
|
||||
ROBOCOPY /S "%WD%\runtime\src" "%BUILDROOT%\runtime\src" > nul
|
||||
CALL :CHECK_ROBOCOPY_ERROR
|
||||
XCOPY /S /I /E /H /Y "%WD%\runtime\assets" "%BUILDROOT%\runtime\assets" > nul || EXIT /B 1
|
||||
XCOPY /S /I /E /H /Y "%WD%\runtime\src" "%BUILDROOT%\runtime\src" > nul || EXIT /B 1
|
||||
|
||||
COPY "%WD%\runtime\package.json" "%BUILDROOT%\runtime\" > nul || EXIT /B 1
|
||||
CD "%BUILDROOT%\runtime\"
|
||||
|
@ -287,12 +282,11 @@ REM Main build sequence Ends
|
|||
REM WGET END
|
||||
|
||||
REM YARN
|
||||
REM ROBOCOPY /S "%TMPDIR%\node_modules\nw\nwjs\*" "%BUILDROOT%\runtime" > nul
|
||||
REM XCOPY /S /I /E /H /Y "%TMPDIR%\node_modules\nw\nwjs\*" "%BUILDROOT%\runtime" > nul || EXIT /B 1
|
||||
REM YARN END
|
||||
|
||||
REM WGET
|
||||
ROBOCOPY /S "%TMPDIR%\nwjs-v%NW_VERSION%-win-x64\*" "%BUILDROOT%\runtime" > nul
|
||||
CALL :CHECK_ROBOCOPY_ERROR
|
||||
XCOPY /S /I /E /H /Y "%TMPDIR%\nwjs-v%NW_VERSION%-win-x64\*" "%BUILDROOT%\runtime" > nul || EXIT /B 1
|
||||
REM WGET END
|
||||
|
||||
MOVE "%BUILDROOT%\runtime\nw.exe" "%BUILDROOT%\runtime\pgAdmin4.exe"
|
||||
|
|
Loading…
Reference in New Issue
Block a user