From 1939b7afa15ca17116d9ff31c2ebf03eae4fba66 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sun, 15 Jan 2023 16:50:11 +0800 Subject: [PATCH] Update UEngine Installer --- uengine-installer | 11 ++++++++++- uengine-loading-ubuntu.desktop | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/uengine-installer b/uengine-installer index efac299..4b68c3b 100755 --- a/uengine-installer +++ b/uengine-installer @@ -35,6 +35,15 @@ tar_path=`echo "$tar_path" | sed $'s/\'//g'` echo "开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件" cd /tmp tar -xf "$tar_path" +# 移除包内旧版的run_daemon.sh(如果有的话) +aria2c -x 16 -s 16 -d /tmp -o run_daemon.sh https://code.gitlink.org.cn/gfdgd_xi/uengine-installer-bak/raw/branch/master/run_daemon.sh +if [[ $? == 0 ]]; then + # 如果下载成功,就使用下载好的 run_daemon.sh + if [[ -f /tmp/run_daemon.sh ]]; then + rm -rfv /tmp/uengine/run_daemon.sh + mv -v /tmp/run_daemon.sh /tmp/uengine/run_daemon.sh + fi +fi # 拷贝到每个用户目录 for username in $(ls /home) do @@ -57,7 +66,7 @@ cd /tmp/uengine /tmp/uengine/install.sh # 安装所需依赖 sudo apt install -y libkf5globalaccel5 libqt5multimedia5 libqt5sensors5 libegl1-mesa-dev -# lnk Path To Install APK +# 用于修复 UEngine 在 Ubuntu 无法安装 APK 的问题 sudo mkdir -p /var/lib/uengine sudo ln -s /data/uengine/data/data/ /var/lib/uengine/data # 拷贝快捷方式 diff --git a/uengine-loading-ubuntu.desktop b/uengine-loading-ubuntu.desktop index cd9ec73..544c18d 100644 --- a/uengine-loading-ubuntu.desktop +++ b/uengine-loading-ubuntu.desktop @@ -3,7 +3,7 @@ Categories=System; Comment=启动 UEngine 环境(默认会开机自启动) Encoding=UTF-8 Exec=uengine-loading-ubuntu -Icon=/opt/apps/com.gitee.uengine.runner.spark/files/defult.svg +Icon=bash /opt/apps/com.gitee.uengine.runner.spark/files/defult.svg MimeType= Name=手动启动 UEngine 环境(默认会开机自启动) StartupWMClass=手动启动 UEngine 环境(默认会开机自启动)