mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 11:45:13 +08:00
🍉 Sync 2026-06-08 21:29:51
This commit is contained in:
1 parent
e41d0593c1
commit
5a8525a2b6
8 files changed
+14
-13
No files matched your search
+2
-2
@@ -5,8 +5,8 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=amule
|
||||
PKG_VERSION:=2.3.3
|
||||
PKG_RELEASE:=1
|
||||
PKG_VERSION:=3.0.0
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/amule-project/amule/tar.gz/$(PKG_VERSION)?
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
### 适配 OpenClaw v2026.6.1
|
||||
|
||||
- `OC_TESTED_VERSION` 更新为 `2026.6.1`,默认稳定版跟随 npm `latest` 稳定标签。
|
||||
- 默认 Node.js 运行时更新为 `24.15.0`,最低要求同步提升到 `22.19.0`,匹配 OpenClaw 2026.6.x 的 `engines.node`。
|
||||
- 默认 Node.js 运行时更新为 Alpine musl LTS `22.22.2`,最低要求同步提升到 `22.19.0`,匹配 OpenClaw 2026.6.x 的 `engines.node`。
|
||||
- 安装脚本不再从当前 Node 版本静默回退到旧版 V1 tarball,避免下载失败后装入过低 Node.js 并在 OpenClaw 安装后失败。
|
||||
- ARM64 musl 预编译 Node.js 构建流程更新为 `24.15.0`,并校验默认路径和自定义安装路径均可运行。
|
||||
- ARM64 musl 预编译 Node.js 构建流程改用 Alpine 原生 LTS 包,避免 glibc 二进制转换为 musl 后运行失败,并校验默认路径和自定义安装路径均可运行。
|
||||
|
||||
### 修复安装、控制台与状态体验
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-openclaw
|
||||
PKG_VERSION:=$(strip $(shell cat $(CURDIR)/VERSION 2>/dev/null || echo "1.0.0"))
|
||||
PKG_RELEASE:=16
|
||||
PKG_RELEASE:=17
|
||||
|
||||
PKG_MAINTAINER:=10000ge10000 <10000ge10000@users.noreply.github.com>
|
||||
PKG_LICENSE:=GPL-3.0
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
| 组件 | 默认版本 | 说明 |
|
||||
|------|----------|------|
|
||||
| OpenClaw | `2026.6.1` | npm `latest` 稳定标签;不默认追 `2026.6.5-beta.2` |
|
||||
| Node.js | `24.15.0` | OpenClaw 2026.6.x 要求 `>=22.19.0`;安装后会按 `engines.node` 做强校验,低于要求会直接失败 |
|
||||
| Node.js | `22.22.2` | Alpine musl LTS 包;OpenClaw 2026.6.x 要求 `>=22.19.0`,安装后会按 `engines.node` 做强校验 |
|
||||
| 微信插件 | `@tencent-weixin/openclaw-weixin@2.4.3` | CLI 使用 `@tencent-weixin/openclaw-weixin-cli@2.1.4` |
|
||||
|
||||
## 📦 安装
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
set -e
|
||||
|
||||
# ── Node.js 版本策略 (双版本兼容) ──
|
||||
# V2: 当前推荐版本,用于 OpenClaw v2026.6.1+ (要求 >= 22.19.0,使用 24.15.0 确保兼容)
|
||||
# V2: 当前推荐版本,用于 OpenClaw v2026.6.1+ (要求 >= 22.19.0,使用 Alpine musl LTS 包确保可运行)
|
||||
# V1: 旧版兼容,用于 OpenClaw v2026.3.8 及更早版本
|
||||
NODE_VERSION_V2="24.15.0"
|
||||
NODE_VERSION_V2="22.22.2"
|
||||
NODE_VERSION_V1="22.15.1"
|
||||
# 默认使用 V2 版本 (可通过 NODE_VERSION 环境变量覆盖)
|
||||
NODE_VERSION="${NODE_VERSION:-${NODE_VERSION_V2}}"
|
||||
|
||||
@@ -20,8 +20,9 @@ fi
|
||||
|
||||
grep -Fq 'verify_prefix /opt/openclaw/node' "$BUILD_SCRIPT" || fail "build script should verify default install path"
|
||||
grep -Fq 'verify_prefix /tmp/custom-openclaw-root/openclaw/node' "$BUILD_SCRIPT" || fail "build script should verify custom install path"
|
||||
grep -Fq 'NODE_VER="24.15.0"' "$WORKFLOW" || fail "workflow should build current Node.js"
|
||||
grep -Fq 'BUILD_MODE=cross' "$WORKFLOW" || fail "workflow should use cross mode for current ARM64 musl package"
|
||||
grep -Fq 'NODE_VER="22.22.2"' "$WORKFLOW" || fail "workflow should build current musl-compatible Node.js"
|
||||
grep -Fq 'BUILD_MODE=apk' "$WORKFLOW" || fail "workflow should use apk mode for ARM64 musl package"
|
||||
grep -Fq 'PKG_TYPE=lts' "$WORKFLOW" || fail "workflow should use Alpine LTS Node.js package"
|
||||
|
||||
grep -Fq 'oc_node_version_ge "$current_ver" "$node_ver"' "$ENV_SCRIPT" || fail "installer should require installed Node.js to satisfy target version"
|
||||
if grep -Fq 'v1_tarball' "$ENV_SCRIPT"; then
|
||||
|
||||
@@ -7,7 +7,7 @@ fail() {
|
||||
}
|
||||
|
||||
grep -q "OC_TESTED_VERSION=\"2026.6.1\"" root/usr/bin/openclaw-env || fail "tested OpenClaw version not pinned"
|
||||
grep -q "NODE_VERSION_V2=\"24.15.0\"" root/usr/bin/openclaw-env || fail "default Node.js version not pinned"
|
||||
grep -q "NODE_VERSION_V2=\"22.22.2\"" root/usr/bin/openclaw-env || fail "default Node.js version not pinned"
|
||||
grep -q "OC_NODE_MIN_VERSION=\"\${OC_NODE_MIN_VERSION:-22.19.0}\"" root/usr/bin/openclaw-env || fail "minimum Node.js version not pinned"
|
||||
grep -q "oc_assert_node_min_version" root/usr/bin/openclaw-env || fail "Node.js minimum version check missing"
|
||||
grep -q 'oc_node_version_ge "$from_pkg" "$required"' root/usr/bin/openclaw-env || fail "package Node.js requirement must not lower static minimum"
|
||||
|
||||
@@ -8,10 +8,10 @@ fail() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
[ "$(oc_normalize_node_version v24.15.0)" = "24.15.0" ] || fail "normalize v"
|
||||
[ "$(oc_normalize_node_version v22.22.2)" = "22.22.2" ] || fail "normalize v"
|
||||
oc_node_version_ge 22.19.0 22.19.0 || fail "exact version"
|
||||
oc_node_version_ge 22.19.1 22.19.0 || fail "patch version"
|
||||
oc_node_version_ge 24.15.0 22.19.0 || fail "major version"
|
||||
oc_node_version_ge 22.22.2 22.19.0 || fail "supported LTS version"
|
||||
if oc_node_version_ge 22.18.1 22.19.0; then
|
||||
fail "older minor accepted"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user