1 Star 0 Fork 28

晨冬 / uengine 运行器

forked from gfdgd xi / uengine 运行器 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
uengine-runner-applist-launch.sh 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
cd `dirname $0`
dir=`pwd`
FILE=/usr/bin/uengine
if [ -f "$FILE" ]; then
echo "$FILE 存在,正常打开菜单"
/usr/bin/uengine launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
else
echo "$FILE 不存在,没有安装 UEngine,询问是否安装 UEngine"
# 读取系统版本
version=`sed -n '/^NAME/s/NAME="//Ip' /etc/os-release | sed -n 's/\"//Ip'`
declare -l versionLower=$version
echo "系统:$version"
if [ "$versionLower" = "deepin" ] || [ "$versionLower" = "uos" ]; then
echo "此系统为 Deepin/UOS,使用 apt 安装"
zenity --question --text="您还未安装 UEngine,是否现在安装?" --no-wrap
if [[ $? == 0 ]]; then
"$dir/launch.sh" deepin-terminal -C "pkexec apt install uengine -y"
fi
else
# 因为安装器出现问题,所以废弃
zenity --error --text="请安装 UEngine 后继续" --no-wrap
echo "非 Deepin/UOS 系统,使用 shenmo 提供的脚本安装\n暂未保证此安装脚本一定安装成功"
zenity --question --text="您还未安装 UEngine,是否现在安装?" --no-wrap
if [[ $? == 0 ]]; then
"$dir/launch.sh" deepin-terminal -C "bash /opt/apps/com.gitee.uengine.runner.spark/files/uengine-installer"
fi
fi
fi
Python
1
https://gitee.com/mornwinter/uengine-runner.git
git@gitee.com:mornwinter/uengine-runner.git
mornwinter
uengine-runner
uengine 运行器
main

搜索帮助