mirror of
https://github.com/hotwa/luci-app-openclaw.git
synced 2026-03-31 04:52:33 +00:00
Auto-link legacy ARM64 musl node assets
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Shared OpenClaw Node.js runtime/version helpers.
|
||||
|
||||
OPENCLAW_LEGACY_ARM64_MUSL_INTERPRETER="${OPENCLAW_LEGACY_ARM64_MUSL_INTERPRETER:-/opt/openclaw/node/lib/ld-musl-aarch64.so.1}"
|
||||
|
||||
oc_normalize_node_version() {
|
||||
local version="${1:-}"
|
||||
local old_ifs
|
||||
@@ -67,6 +69,15 @@ oc_read_node_version() {
|
||||
oc_normalize_node_version "$version"
|
||||
}
|
||||
|
||||
oc_node_requires_opt_compat() {
|
||||
local node_bin="${1:-}"
|
||||
|
||||
[ -n "$node_bin" ] || return 1
|
||||
[ -f "$node_bin" ] || return 1
|
||||
|
||||
grep -aqF "$OPENCLAW_LEGACY_ARM64_MUSL_INTERPRETER" "$node_bin"
|
||||
}
|
||||
|
||||
oc_select_node_release_asset_url() {
|
||||
local json_file="${1:-}"
|
||||
local node_arch="${2:-}"
|
||||
|
||||
Reference in New Issue
Block a user