新增Via安装功能

This commit is contained in:
2024-01-30 10:15:14 +08:00
parent e94ebecfa2
commit 82b352d827
13 changed files with 113 additions and 34 deletions

View File

@@ -59,6 +59,13 @@ if [[ -f /usr/bin/uengine-loading-ubuntu ]] || [[ -f /usr/bin/uengine-loading-bi
done
rm -f /tmp/upgrade-uengine-loading-ubuntu
fi
# 自动往 UEngine 安装 Via如果 UEngine 已存在)
if [[ -f /usr/bin/uengine-session-launch-helper ]]; then
# 忽略错误进行安装
cp /opt/apps/com.gitee.uengine.runner.spark/files/APK/Via.apk /tmp/Via.apk | true
/usr/bin/uengine-session-launch-helper -- uengine install --apk=/tmp/Via.apk | true
rm -f /tmp/Via.apk | true
fi
# 刷新图标缓存
# 因为 Ubuntu 的问题,省略
gtk-update-icon-cache /usr/share/icons/bloom > /dev/null | true

View File

@@ -61,7 +61,11 @@ if [ "$1" = "purge" ]; then
else
echo "非 purge跳过清理"
fi
# 自动卸载 UEngine 的 Via如果 UEngine 已存在)
if [[ -f /usr/bin/uengine-session-launch-helper ]]; then
# 忽略错误进行安装
/usr/bin/uengine-session-launch-helper -- uengine uninstall --pkg=mark.via | true
fi
# 刷新图标缓存
# 因为 Ubuntu 的问题,省略
gtk-update-icon-cache /usr/share/icons/bloom > /dev/null | true