feat: 阳光统一 2025.924,UOS20/Kylin V10 经 ablrun 兼容运行

- phserver.sh 检测 Kylin V10(NAME==Kylin/VERSION_ID==v10)同样走 ablrun
- phserver.sh 每次拉起 sunshine 前调用 refresh-xauth.sh --wait 45,自愈开机 Xauthority 竞态
- abl_portable others/ 补 libwayland-client 1.21 与 libffi 3.3(Kylin V10 缺符号,见 README)
- 删除 sunshine-0.23.1.AppImage:实测其 /api/pin 恒 false,配对不可用,已统一 2025.924

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Zhanghu
2026-11-06 21:13:29 +08:00
parent a18085a783
commit 6a5af3b2cf
7 changed files with 25 additions and 3 deletions

View File

@@ -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`。

View File

@@ -0,0 +1 @@
libffi.so.6.0.4

View File

@@ -0,0 +1 @@
libwayland-client.so.0.21.0

View File

@@ -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"