Fix windows, linux builds as pgAdmin 4 desktop is not opening.

pull/7829/head
Aditya Toshniwal 2024-08-20 13:03:32 +05:30
parent ba87cbecfd
commit e7981c7f11
2 changed files with 6 additions and 0 deletions

View File

@ -267,6 +267,8 @@ REM Main build sequence Ends
XCOPY /S /I /E /H /Y "%WD%\runtime\src" "%BUILDROOT%\runtime\resources\app\src" > nul || EXIT /B 1
COPY "%WD%\runtime\package.json" "%BUILDROOT%\runtime\resources\app\" > nul || EXIT /B 1
COPY "%WD%\runtime\.yarnrc.yml" "%BUILDROOT%\runtime\resources\app\" > nul || EXIT /B 1
CD "%BUILDROOT%\runtime\resources\app\"
CALL yarn set version berry || EXIT /B 1
@ -274,6 +276,9 @@ REM Main build sequence Ends
CALL yarn plugin import workspace-tools || EXIT /B 1
CALL yarn workspaces focus --production || EXIT /B 1
ECHO Removing yarn cache...
RD /Q /S "%BUILDROOT%\runtime\resources\app\.yarn" 1> nul 2>&1
ECHO Downloading Electron to %TMPDIR%...
REM Get a fresh copy of electron.

View File

@ -171,6 +171,7 @@ _build_runtime() {
cp -r "${SOURCEDIR}/runtime/src" "${BUNDLEDIR}/resources/app/src"
cp "${SOURCEDIR}/runtime/package.json" "${BUNDLEDIR}/resources/app"
cp "${SOURCEDIR}/runtime/.yarnrc.yml" "${BUNDLEDIR}/resources/app"
# Install the runtime node_modules
pushd "${BUNDLEDIR}/resources/app" > /dev/null || exit