mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
49 lines
1.3 KiB
Batchfile
49 lines
1.3 KiB
Batchfile
echo "Clone and build Cloudbeaver"
|
|
|
|
IF EXIST cloudbeaver rmdir /S /Q cloudbeaver
|
|
mkdir cloudbeaver\server
|
|
mkdir cloudbeaver\conf
|
|
mkdir cloudbeaver\workspace
|
|
mkdir cloudbeaver\web
|
|
|
|
echo "Build dbeaver application"
|
|
|
|
cd ../..
|
|
IF NOT EXIST dbeaver git clone https://github.com/dbeaver/dbeaver.git
|
|
cd dbeaver
|
|
git pull
|
|
call mvn clean install -Dheadless-platform
|
|
cd ../cloudbeaver/deploy
|
|
|
|
echo "Build cloudbeaver server"
|
|
|
|
cd ..\server
|
|
call mvn clean package
|
|
cd ..\deploy
|
|
|
|
echo "Copy server packages"
|
|
|
|
xcopy /E /Q ..\server\product\web-server\target\products\io.cloudbeaver.product\all\all\all\* cloudbeaver\server >NUL
|
|
copy scripts\run-server.bat cloudbeaver >NUL
|
|
mkdir cloudbeaver\workspace\GlobalConfiguration
|
|
xcopy /E /Q ..\samples\sample-databases\GlobalConfiguration cloudbeaver\workspace\GlobalConfiguration >NUL
|
|
copy ..\samples\sample-databases\cloudbeaver-sample.conf cloudbeaver\conf\cloudbeaver.conf >NUL
|
|
|
|
echo "Build static content"
|
|
|
|
cd ..\webapp
|
|
|
|
call npm i lerna -g
|
|
call lerna bootstrap
|
|
call lerna run build --scope @dbeaver/dbeaver -- -- --pluginsList=../../../../products/default/plugins-list.js
|
|
|
|
cd ..\deploy
|
|
|
|
echo "Copy static content"
|
|
|
|
xcopy /E /Q ..\webapp\packages\dbeaver\dist cloudbeaver\web >NUL
|
|
|
|
echo "Cloudbeaver is ready. Run run-server.bat in cloudbeaver folder to start the server."
|
|
|
|
pause
|