修改 ablrun 路径

This commit is contained in:
Zhanghu
2025-11-06 14:07:40 +08:00
parent 3ff6e73104
commit c07298de3b

View File

@@ -22,11 +22,13 @@ if [ -f /etc/os-release ]; then
if [[ "${NAME}" == "uos" ]] && [[ "${VERSION_ID}" == "20" ]]; then
echo "Detected UOS V20, running with ablrun..."
bash# 定义 ablrun 的完整路径
ABLRUN="$(dirname "${BASH_SOURCE[0]}")/abl_portable/usr/bin/ablrun"
# 检查 ablrun 是否可用
if command -v ablrun &> /dev/null; then
$(dirname "${BASH_SOURCE[0]}")/abl_portable/usr/bin/ablrun "${APPIMAGE}" "$@"
if [[ -x "${ABLRUN}" ]]; then
"${ABLRUN}" "${APPIMAGE}" "$@"
else
echo "Warning: ablrun command not available, trying direct execution..."
echo "Warning: ablrun not found at ${ABLRUN}, trying direct execution..."
"${APPIMAGE}" "$@"
fi
else