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