diff --git a/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/README.md b/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/README.md new file mode 100644 index 0000000..e30ca7a --- /dev/null +++ b/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/README.md @@ -0,0 +1,12 @@ +# others 目录补充库说明 + +ablrun 沙箱内 LD_LIBRARY_PATH 优先加载的补充库,解决老 glibc 系统(UOS 20 / Kylin V10)跑新版 sunshine.AppImage(2025.924)的依赖缺口。 + +| 文件 | 来源 | 许可证 | 解决的问题 | +| ---- | ---- | ---- | ---- | +| libharfbuzz.so.0.20704.0 | 统信 UOS 20 仓库 (harfbuzz 2.6.4) | MIT | UOS 20 系统 libharfbuzz 过老 | +| libwayland-client.so.0.21.0 | 统信 UOS 20 仓库 (wayland 1.21.0.9) | MIT | Kylin V10 系统 wayland 1.18 缺 `wl_proxy_marshal_flags`,AppImage 的 libgdk-3 依赖它且 AppImage 不自带 libwayland-client | +| libffi.so.6.0.4 | 统信 UOS 20 仓库 (libffi 3.3) | MIT | libwayland-client 1.21 依赖 libffi.so.6,Kylin V10 只有 libffi.so.7 | + +2026-11-06 在麒麟 V10 SP1 实测:sunshine 2025.924 经 ablrun 启动,缺前两个库时依次报 +`undefined symbol: wl_proxy_marshal_flags` / `libffi.so.6: cannot open shared object file`。 diff --git a/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/libffi.so.6 b/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/libffi.so.6 new file mode 120000 index 0000000..c6cc6fd --- /dev/null +++ b/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/libffi.so.6 @@ -0,0 +1 @@ +libffi.so.6.0.4 \ No newline at end of file diff --git a/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/libffi.so.6.0.4 b/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/libffi.so.6.0.4 new file mode 100644 index 0000000..ed99450 Binary files /dev/null and b/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/libffi.so.6.0.4 differ diff --git a/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/libwayland-client.so.0 b/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/libwayland-client.so.0 new file mode 120000 index 0000000..a25f6c7 --- /dev/null +++ b/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/libwayland-client.so.0 @@ -0,0 +1 @@ +libwayland-client.so.0.21.0 \ No newline at end of file diff --git a/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/libwayland-client.so.0.21.0 b/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/libwayland-client.so.0.21.0 new file mode 100644 index 0000000..18644b8 Binary files /dev/null and b/linux-x64/phserver/abl_portable/usr/lib/x86_64-linux-gnu/others/libwayland-client.so.0.21.0 differ diff --git a/linux-x64/phserver/phserver.sh b/linux-x64/phserver/phserver.sh index 7d6e6ae..e235236 100755 --- a/linux-x64/phserver/phserver.sh +++ b/linux-x64/phserver/phserver.sh @@ -14,13 +14,21 @@ fi # Ensure AppImage has execute permission chmod +x "${APPIMAGE}" +# 每次拉起 sunshine 前刷新 /root/.Xauthority(最多等 45 秒登录就绪): +# 自愈开机竞态——服务 ExecStartPre 时机可能早于用户登录,cookie 是上次会话的, +# 会导致 sunshine capture 初始化失败、串流不可用。脚本不存在/失败不阻断启动。 +REFRESH_XAUTH="${SCRIPT_DIR}/../refresh-xauth.sh" +if [ -f "${REFRESH_XAUTH}" ]; then + "${REFRESH_XAUTH}" --wait 45 || true +fi + # Read system information if [ -f /etc/os-release ]; then source /etc/os-release - # Detect if it's UOS V20 - if [[ "${NAME}" == "uos" ]] && [[ "${VERSION_ID}" == "20" ]]; then - echo "Detected UOS V20, running with ablrun..." + # Detect if it's UOS V20 or Kylin V10(两者 glibc 偏老,需 ablrun 提供兼容 libc) + if [[ "${NAME}" == "uos" && "${VERSION_ID}" == "20" ]] || [[ "${NAME}" == "Kylin" && "${VERSION_ID}" == "v10" ]]; then + echo "Detected ${NAME} ${VERSION_ID}, running with ablrun..." # 定义 ablrun 的完整路径 ABLRUN="$(dirname "${BASH_SOURCE[0]}")/abl_portable/usr/bin/ablrun" diff --git a/linux-x64/phserver/sunshine-0.23.1.AppImage b/linux-x64/phserver/sunshine-0.23.1.AppImage deleted file mode 100755 index df00992..0000000 Binary files a/linux-x64/phserver/sunshine-0.23.1.AppImage and /dev/null differ