Install only bundled plugin manifests
The gateway runtime loads built plugins from dist/extensions, so the source extensions tree only needs manifest metadata for compatibility. Copy only openclaw.plugin.json files and assert the memory-core manifest exists in both compatibility and runtime trees. Tests: sh -n nix/scripts/gateway-install.sh nix/scripts/check-package-contents.sh; git diff --check; nix build --dry-run .#checks.aarch64-darwin.package-contents .#checks.x86_64-linux.package-contents --accept-flake-config
This commit is contained in:
parent
0dae522382
commit
7cbc79ce52
@ -17,6 +17,8 @@ require_path() {
|
||||
|
||||
require_path "${root}/extensions"
|
||||
require_path "${root}/extensions/memory-core"
|
||||
require_path "${root}/extensions/memory-core/openclaw.plugin.json"
|
||||
require_path "${root}/dist/extensions/memory-core/openclaw.plugin.json"
|
||||
require_path "${root}/docs/reference/templates"
|
||||
require_path "${root}/docs/reference/templates/AGENTS.md"
|
||||
require_path "${root}/docs/reference/templates/SOUL.md"
|
||||
|
||||
@ -42,11 +42,24 @@ check_no_broken_symlinks() {
|
||||
rm -f "$broken_tmp"
|
||||
}
|
||||
|
||||
copy_extension_manifests() {
|
||||
if [ ! -d extensions ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
mkdir -p "$out/lib/openclaw/extensions"
|
||||
find extensions -mindepth 2 -maxdepth 2 -name openclaw.plugin.json -type f -print | while IFS= read -r manifest; do
|
||||
name="$(basename "$(dirname "$manifest")")"
|
||||
mkdir -p "$out/lib/openclaw/extensions/$name"
|
||||
cp "$manifest" "$out/lib/openclaw/extensions/$name/openclaw.plugin.json"
|
||||
done
|
||||
}
|
||||
|
||||
mkdir -p "$out/lib/openclaw" "$out/bin"
|
||||
|
||||
log_step "copy build outputs" cp -R dist node_modules package.json "$out/lib/openclaw/"
|
||||
if [ -d extensions ]; then
|
||||
log_step "copy extensions" cp -r extensions "$out/lib/openclaw/"
|
||||
log_step "copy extension manifests" copy_extension_manifests
|
||||
fi
|
||||
if [ -d skills ]; then
|
||||
log_step "copy bundled skills" cp -r skills "$out/lib/openclaw/"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user