mirror of
https://github.com/hotwa/luci-app-openclaw.git
synced 2026-03-30 20:25:44 +00:00
Auto-link legacy ARM64 musl node assets
This commit is contained in:
@@ -51,6 +51,17 @@ if oc_read_node_version "$tmpdir/node-bad" >/dev/null 2>&1; then
|
||||
fail "broken node binary should not be accepted"
|
||||
fi
|
||||
|
||||
cat > "$tmpdir/node-legacy-opt" <<'EOF'
|
||||
#!/bin/sh
|
||||
/opt/openclaw/node/lib/ld-musl-aarch64.so.1
|
||||
EOF
|
||||
chmod +x "$tmpdir/node-legacy-opt"
|
||||
|
||||
oc_node_requires_opt_compat "$tmpdir/node-legacy-opt" || fail "legacy opt-bound node binary should be detected"
|
||||
if oc_node_requires_opt_compat "$tmpdir/node-ok" >/dev/null 2>&1; then
|
||||
fail "modern runnable node helper should not require opt compatibility"
|
||||
fi
|
||||
|
||||
cat > "$tmpdir/node-bins-release.json" <<'EOF'
|
||||
{
|
||||
"tag_name": "node-bins",
|
||||
|
||||
Reference in New Issue
Block a user