fix(build): bricks dist mkdir + tenant module

This commit is contained in:
yumoqing 2026-07-18 22:53:13 +08:00
parent 3c9fdcf444
commit f5d7e15290

View File

@ -31,11 +31,17 @@ cd "$cdir/pkgs"
if [ ! -d bricks ]; then if [ ! -d bricks ]; then
git clone https://git.opencomputing.cn/yumoqing/bricks || true git clone https://git.opencomputing.cn/yumoqing/bricks || true
fi fi
if [ ! -f bricks/dist/bricks.js ]; then
if [ -d bricks/bricks ]; then if [ -d bricks/bricks ]; then
cd bricks/bricks && bash build.sh 2>&1 | tail -3 cd bricks/bricks
mkdir -p ../dist/i18n 2>/dev/null
bash build.sh 2>&1 | tail -3
cd "$cdir/pkgs"
fi fi
ln -sf "$cdir/pkgs/bricks/dist" "$cdir/bricks" 2>/dev/null || true fi
cd "$cdir" rm -f "$cdir/bricks" 2>/dev/null
ln -sf "$cdir/pkgs/bricks/dist" "$cdir/bricks" 2>/dev/null || ln -sf pkgs/bricks/dist "$cdir/bricks"
echo "bricks link: $(readlink "$cdir/bricks")"
# 4. Move local business modules into pkgs/ # 4. Move local business modules into pkgs/
for mod in pipeline_core pipeline_ops pipeline_dist; do for mod in pipeline_core pipeline_ops pipeline_dist; do
@ -45,7 +51,7 @@ for mod in pipeline_core pipeline_ops pipeline_dist; do
done done
# 5. Install business modules (clone external, local already in pkgs) # 5. Install business modules (clone external, local already in pkgs)
for mod in pipeline-sdlc showcase evaluate pipeline-service pipeline-task; do for mod in pipeline-sdlc showcase evaluate pipeline-service pipeline-task tenant; do
cd "$cdir/pkgs" cd "$cdir/pkgs"
if [ ! -d "$mod" ]; then if [ ! -d "$mod" ]; then
git clone https://git.opencomputing.cn/yumoqing/$mod || echo "SKIP: $mod" git clone https://git.opencomputing.cn/yumoqing/$mod || echo "SKIP: $mod"
@ -54,7 +60,7 @@ for mod in pipeline-sdlc showcase evaluate pipeline-service pipeline-task; do
done done
# 6. pip install all modules from pkgs/ # 6. pip install all modules from pkgs/
for mod in pipeline_core pipeline_ops pipeline_dist pipeline-sdlc showcase; do for mod in pipeline_core pipeline_ops pipeline_dist pipeline-sdlc showcase tenant; do
if [ -d "pkgs/$mod" ]; then if [ -d "pkgs/$mod" ]; then
"$cdir/py3/bin/pip" install "pkgs/$mod/" 2>&1 | tail -1 "$cdir/py3/bin/pip" install "pkgs/$mod/" 2>&1 | tail -1
fi fi