Fix ARM64 musl node download discovery

This commit is contained in:
mm644706215
2026-03-21 11:54:20 +08:00
parent f3ce598550
commit 46b0b0f571
7 changed files with 162 additions and 17 deletions

View File

@@ -14,6 +14,7 @@
# 使用 patchelf 修改 node 二进制的 ELF interpreter 和 rpath
# 使其使用系统 musl 动态链接器和相对 rpath可从任意安装根目录直接运行。
# 这样 process.execPath 返回正确的 node 路径,子进程 fork 也能正常工作。
# 注意: 运行时把 NODE_VERSION 视为最低要求,不要求发布资产文件名与最低要求版本完全相同。
# ============================================================================
set -e