重新恢复uengine-installer For Ubuntu

This commit is contained in:
gfdgd_xi 2022-09-10 18:42:42 +08:00
parent 1357a1be41
commit 34c3cd31d1
2 changed files with 13 additions and 10 deletions

View File

@ -1680,11 +1680,11 @@ if not os.path.exists("/usr/bin/uengine"):
# 非 Deepin/UOS 用户
# 因为安装器出现问题,所以废弃
else:
QtWidgets.QMessageBox.critical(None, "错误", "请安装 UEngine 后继续")
sys.exit(0)
#if QtWidgets.QMessageBox.question(None, "提示", "您的电脑没有安装 UEngine是否安装 UEngine 以便更好的使用\n这里将会使用 shenmo 提供的脚本进行安装\n安装完后重新启动该程序即可\n提示无法保证此安装脚本安装的 UEngine 可以使用") == QtWidgets.QMessageBox.Yes:
# os.system(f"'{programPath}/launch.sh' deepin-terminal -C \"bash '{programPath}/uengine-installer'\"")
# sys.exit(0)
#QtWidgets.QMessageBox.critical(None, "错误", "请安装 UEngine 后继续")
#sys.exit(0)
if QtWidgets.QMessageBox.question(None, "提示", "您的电脑没有安装 UEngine是否安装 UEngine 以便更好的使用\n这里将会使用 shenmo 提供的脚本进行安装\n安装完后重新启动该程序即可\n提示:无法保证此安装脚本安装的 UEngine 可以使用") == QtWidgets.QMessageBox.Yes:
os.system(f"'{programPath}/launch.sh' deepin-terminal -C \"bash '{programPath}/uengine-installer'\"")
sys.exit(0)
###########################
# 窗口创建
@ -1842,7 +1842,7 @@ uengineData = uengine.addMenu(langFile[lang]["Main"]["MainWindow"]["Menu"][2]["M
uengine.addAction(uengineDeleteUengineCheck)
uengine.addAction(uengineReinstall)
uengineRoot = uengine.addMenu(langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][11]["Name"])
uengineUbuntuInstall.setDisabled(True)
#uengineUbuntuInstall.setDisabled(True)
# 绑定信号
uengineAllowOrDisallowUpdateAndroidApp.triggered.connect(AllowOrDisallowUpdateAndroidApp)
uengineSetHttpProxy.triggered.connect(SetHttpProxy)

View File

@ -2,14 +2,17 @@
is_tar_checked="0"
rm -rf /tmp/uengine
until [ "$is_tar_checked" = "1" ];do
echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
read tar_path
#echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
#read tar_path
mkdir -p /tmp/uengine
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://code.gitlink.org.cn/gfdgd_xi/uengine-installer/raw/branch/master/uenginetar.xz
tar_path="/tmp/uengine/uenginetar.xz"
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
echo "路径为 $tar_path"
#echo "路径为 $tar_path"
tar_md5sum=`md5sum $tar_path`
tar_md5sum=`echo ${tar_md5sum%%/*}`
if [ "$tar_md5sum" = "b8429c4d8bfd507b9dc4547e0b71c962" ];then
if [ "$tar_md5sum" = "5668b6bb54d28406e527989348126982" ];then
is_tar_checked="1"
else
echo $tar_md5sum