fix(build): wwwroot symlinks to pkgs/ modules

This commit is contained in:
yumoqing 2026-07-18 23:19:08 +08:00
parent 59bcc3da9f
commit d2a3f216dc

View File

@ -75,16 +75,18 @@ if [ -d "pkgs/pipeline-sdlc/json" ]; then
fi
# 8. Link module wwwroot directories
for mod in pipeline-sdlc showcase tenant; do
# 8. Link module wwwroot directories (symlinks from pkgs/)
for mod in pipeline-sdlc showcase tenant pipeline_core pipeline_ops pipeline_dist; do
src="pkgs/$mod/wwwroot"
dst="wwwroot/$mod"
if [ -d "$src" ]; then
rm -rf "$dst" 2>/dev/null
cp -r "$src" "$dst"
ln -sf "../pkgs/$mod/wwwroot" "$dst"
echo " wwwroot: $mod linked"
fi
done
# pipeline_task has no separate module
mkdir -p wwwroot/pipeline_task
# 9. Create runtime dirs
mkdir -p "$cdir/logs" "$cdir/files" "$cdir/conf"