INSTALLER支持安装ROOT镜像

This commit is contained in:
gfdgd_xi 2023-01-15 10:08:29 +08:00
parent f3d1a1e932
commit 940014952f
2 changed files with 12 additions and 6 deletions

View File

@ -485,7 +485,7 @@ widget.setLayout(widgetLayout)
window.setWindowTitle(title)
window.setCentralWidget(widget)
window.setWindowIcon(QtGui.QIcon(iconPath))
window.resize(window.frameSize().width() * 1.3, window.frameSize().height() * 1.1)
window.resize(int(window.frameSize().width() * 1.3), int(window.frameSize().height() * 1.1))
try:
combobox1.setCurrentText(sys.argv[1])
except:

View File

@ -1,22 +1,28 @@
#/bin/bash
# 在 Shenmo 制作的脚本的基础上进行了修改,修复在 Wayland 下运行错误和无法安装程序的问题
# 建议在 Ubuntu 22.04 及以上版本安装,最好在此之前先安装星火应用商店并将系统和星火应用商店更新到最新版本
is_tar_checked="0"
#is_tar_checked="0"
rm -rf /tmp/uengine
# 不再从网盘下载,直接从 Gitlink 拉取安装包
#until [ "$is_tar_checked" = "1" ];do
#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/uengine2.1.2.2007.tar.xz
# 区分是下载 Root 镜像还是普通镜像
if[[ $1 == "SuperSU" ]]; then
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://code.gitlink.org.cn/gfdgd_xi/uengine-installer/raw/branch/master/uengine2.1.2.2007-supersu.tar.xz
else
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://code.gitlink.org.cn/gfdgd_xi/uengine-installer/raw/branch/master/uengine2.1.2.2007.tar.xz
fi
tar_path="/tmp/uengine/uenginetar.xz"
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
# 忽略md5校验
#echo "路径为 $tar_path"
tar_md5sum=`md5sum $tar_path`
tar_md5sum=`echo ${tar_md5sum%%/*}`
#tar_md5sum=`md5sum $tar_path`
#tar_md5sum=`echo ${tar_md5sum%%/*}`
# 忽略 md5 校验
#if [ "$tar_md5sum" = "5668b6bb54d28406e527989348126982" ];then
is_tar_checked="1"
#is_tar_checked="1"
#else
#echo $tar_md5sum
#echo "md5完整性检查失败请检查是否是这个文件"