mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
Docker: include A2UI sources for bundle (#13114)
* Docker: include A2UI sources for bundle * Build: fail bundling when sources missing and no prebuilt A2UI bundle
This commit is contained in:
@@ -14,10 +14,14 @@ A2UI_RENDERER_DIR="$ROOT_DIR/vendor/a2ui/renderers/lit"
|
||||
A2UI_APP_DIR="$ROOT_DIR/apps/shared/OpenClawKit/Tools/CanvasA2UI"
|
||||
|
||||
# Docker builds exclude vendor/apps via .dockerignore.
|
||||
# In that environment we must keep the prebuilt bundle.
|
||||
# In that environment we can keep a prebuilt bundle only if it exists.
|
||||
if [[ ! -d "$A2UI_RENDERER_DIR" || ! -d "$A2UI_APP_DIR" ]]; then
|
||||
echo "A2UI sources missing; keeping prebuilt bundle."
|
||||
exit 0
|
||||
if [[ -f "$OUTPUT_FILE" ]]; then
|
||||
echo "A2UI sources missing; keeping prebuilt bundle."
|
||||
exit 0
|
||||
fi
|
||||
echo "A2UI sources missing and no prebuilt bundle found at: $OUTPUT_FILE" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
INPUT_PATHS=(
|
||||
|
||||
Reference in New Issue
Block a user