mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
* fix: resolve npm dependencies * fix: types * chore: add manual frontend cache actin running * fix: github workflows * fix: types * fix: types * fix: types
71 lines
1.7 KiB
Batchfile
71 lines
1.7 KiB
Batchfile
@echo off
|
|
|
|
rem command line arguments
|
|
SET CONFIGURATION_PATH=%1
|
|
SET SAMPLE_DATABASE_PATH=%2
|
|
|
|
IF "%CONFIGURATION_PATH%"=="" SET CONFIGURATION_PATH="..\config\sample-databases\DefaultConfiguration"
|
|
echo "Configuration path=%CONFIGURATION_PATH%"
|
|
|
|
echo Clone and build Cloudbeaver
|
|
|
|
IF EXIST drivers rmdir /S /Q drivers
|
|
IF EXIST cloudbeaver rmdir /S /Q cloudbeaver
|
|
mkdir cloudbeaver
|
|
mkdir cloudbeaver\server
|
|
mkdir cloudbeaver\conf
|
|
mkdir cloudbeaver\workspace
|
|
mkdir cloudbeaver\web
|
|
|
|
echo Pull cloudbeaver platform
|
|
|
|
cd ..\..
|
|
|
|
echo Pull dbeaver platform
|
|
|
|
IF NOT EXIST dbeaver git clone https://github.com/dbeaver/dbeaver.git
|
|
cd cloudbeaver\deploy
|
|
|
|
echo Build cloudbeaver server
|
|
|
|
cd ..\server\product\aggregate
|
|
call mvn clean verify -Dheadless-platform
|
|
|
|
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\* cloudbeaver >NUL
|
|
mkdir cloudbeaver\samples
|
|
|
|
IF NOT "%SAMPLE_DATABASE_PATH%"=="" (
|
|
mkdir cloudbeaver\samples\db
|
|
xcopy /E /Q %SAMPLE_DATABASE_PATH% cloudbeaver\samples\db >NUL
|
|
)
|
|
copy ..\config\core\* cloudbeaver\conf >NUL
|
|
copy %CONFIGURATION_PATH%\GlobalConfiguration\.dbeaver\data-sources.json cloudbeaver\conf\initial-data-sources.conf >NUL
|
|
copy %CONFIGURATION_PATH%\*.conf cloudbeaver\conf >NUL
|
|
|
|
move drivers cloudbeaver >NUL
|
|
|
|
echo Build static content
|
|
|
|
cd ..\
|
|
|
|
cd ..\cloudbeaver\webapp
|
|
|
|
call yarn
|
|
call yarn lerna bootstrap
|
|
call yarn lerna run bundle --no-bail --stream --scope=@cloudbeaver/product-default &::-- -- --env source-map
|
|
|
|
cd ..\deploy
|
|
|
|
echo Copy static content
|
|
|
|
xcopy /E /Q ..\webapp\packages\product-default\lib cloudbeaver\web >NUL
|
|
|
|
echo Cloudbeaver is ready. Run run-server.bat in cloudbeaver folder to start the server.
|
|
|
|
pause
|