1.8.2complete

This commit is contained in:
gfdgd_xi 2022-11-28 22:25:09 +08:00
parent 041f5bda39
commit a5a06377a2
9 changed files with 81 additions and 29 deletions

View File

@ -1,5 +1,5 @@
<p width=100px align="center"><img src="runner.svg"></p> <p width=100px align="center"><img src="runner.svg"></p>
<h1 align="center">UEngine 运行器 1.8.1-1</h1> <h1 align="center">UEngine 运行器 1.8.2</h1>
<hr> <hr>
### 介绍 ### 介绍
@ -37,6 +37,16 @@ sudo apt upgrade
### 更新内容 ### 更新内容
#### V1.8.22022年11月28日
**※1、重新恢复 uengine-installer For Ubuntu**
**※2、修复 postrm 的问题**
**※3、修复“添加UEngine应用快捷方式出现问题”的问题**
**※4、修复打包器无参数问题**
**※5、打包器默认勾选“使用 uengine-dc 前缀”**
6、修复Python主版本号判断时潜在的问题By Bail
7、新增部分资源入口
![image.png](https://storage.deepin.org/thread/202211282224306611_image.png)
#### V1.8.1-12022年09月03日 #### V1.8.1-12022年09月03日
**※1、修复缺失依赖 python3-matplotlib 导致程序无法开启的问题** **※1、修复缺失依赖 python3-matplotlib 导致程序无法开启的问题**
**※2、移除在 Ubuntu 上用于安装 UEngine 的安装工具** **※2、移除在 Ubuntu 上用于安装 UEngine 的安装工具**

Binary file not shown.

View File

@ -28,8 +28,9 @@
"※2、修复 postrm 的问题", "※2、修复 postrm 的问题",
"※3、修复“添加UEngine应用快捷方式出现问题”的问题", "※3、修复“添加UEngine应用快捷方式出现问题”的问题",
"※4、修复打包器无参数问题", "※4、修复打包器无参数问题",
"5、修复Python主版本号判断时潜在的问题By Bail", "※5、打包器默认勾选“使用 uengine-dc 前缀”",
"6、新增部分资源入口", "6、修复Python主版本号判断时潜在的问题By Bail",
"7、新增部分资源入口",
"", "",
"<b>V1.8.1-1</b>", "<b>V1.8.1-1</b>",
"※1、修复缺失依赖 python3-matplotlib 导致程序无法开启的问题", "※1、修复缺失依赖 python3-matplotlib 导致程序无法开启的问题",

View File

@ -1,7 +1,7 @@
Package: com.gitee.uengine.runner.spark Package: com.gitee.uengine.runner.spark
Source: com.gitee.uengine.runner.spark Source: com.gitee.uengine.runner.spark
Replaces: spark-uengine-runner, com.gitee.uengine.runner.spark.ubuntu Replaces: spark-uengine-runner, com.gitee.uengine.runner.spark.ubuntu
Version: 1.8.2 Version: 1.8.2-uos
Architecture: all Architecture: all
Section: utils Section: utils
Installed-Size: 1600 Installed-Size: 1600
@ -12,10 +12,11 @@ Priority: optional
Conflicts: spark-uengine-apk-builder, com.gitee.uengine.runner.spark.ubuntu Conflicts: spark-uengine-apk-builder, com.gitee.uengine.runner.spark.ubuntu
Homepage: [https://gitee.com/gfdgd-xi/uengine-runner, https://github.com/gfdgd-xi/uengine-runner, https://www.gitlink.org.cn/gfdgd_xi/uengine-runner] Homepage: [https://gitee.com/gfdgd-xi/uengine-runner, https://github.com/gfdgd-xi/uengine-runner, https://www.gitlink.org.cn/gfdgd_xi/uengine-runner]
Description: UEngine 运行器1.8.2 更新内容: Description: UEngine 运行器1.8.2 更新内容:
1、修复依赖缺失导致程序无法开启的问题 ※1、重新恢复 uengine-installer For Ubuntu
1.8.1更新内容: ※2、修复 postrm 的问题
※1、修复在 APK 详细信息中图标可能过大导致无法正常使用的问题 ※3、修复“添加UEngine应用快捷方式出现问题”的问题
※2、修复 APK 路径带空格无法正常安装的问题 ※4、修复打包器无参数问题
3、修复打包器打包的 APK 带下划线“_”无法正常打包的问题 ※5、打包器默认勾选“使用 uengine-dc 前缀”
4、修复打包器下方命令返回过多空白行的问题 6、修复Python主版本号判断时潜在的问题By Bail
7、新增部分资源入口
开发/参与者gfdgd xi <3025613752@qq.com>, actionchen<917981399@qq.com>, 柚子<https://gitee.com/Limexb>, 为什么您不喜欢熊出没和阿布呢<https://weibo.com/u/7755040136>, 星空露光<https://gitee.com/Cynorkyle>, shenmo<jifengshenmo@outlook.com> 开发/参与者gfdgd xi <3025613752@qq.com>, actionchen<917981399@qq.com>, 柚子<https://gitee.com/Limexb>, 为什么您不喜欢熊出没和阿布呢<https://weibo.com/u/7755040136>, 星空露光<https://gitee.com/Cynorkyle>, shenmo<jifengshenmo@outlook.com>

View File

@ -5,7 +5,7 @@
"https://github.com/gfdgd-xi/uengine-runner", "https://github.com/gfdgd-xi/uengine-runner",
"https://gitlink.org.cn/gfdgd_xi/uengine-runner" "https://gitlink.org.cn/gfdgd_xi/uengine-runner"
], ],
"Version": "1.8.1-1", "Version": "1.8.2",
"System": "Linuxdeepin/UOS", "System": "Linuxdeepin/UOS",
"Tips": [ "Tips": [
"更多可见https://gitee.com/gfdgd-xi/uengine-runner/wikis 或程序的更多帮助", "更多可见https://gitee.com/gfdgd-xi/uengine-runner/wikis 或程序的更多帮助",
@ -23,6 +23,15 @@
"5、如果想要使用adb连接UEngine或其他手机请使用 1.2.0 以前的版本。如需连接UEngine请安装adb补丁" "5、如果想要使用adb连接UEngine或其他手机请使用 1.2.0 以前的版本。如需连接UEngine请安装adb补丁"
], ],
"Update": [ "Update": [
"<b>V1.8.2</b>",
"※1、重新恢复 uengine-installer For Ubuntu",
"※2、修复 postrm 的问题",
"※3、修复“添加UEngine应用快捷方式出现问题”的问题",
"※4、修复打包器无参数问题",
"※5、打包器默认勾选“使用 uengine-dc 前缀”",
"6、修复Python主版本号判断时潜在的问题By Bail",
"7、新增部分资源入口",
"",
"<b>V1.8.1-1</b>", "<b>V1.8.1-1</b>",
"※1、修复缺失依赖 python3-matplotlib 导致程序无法开启的问题", "※1、修复缺失依赖 python3-matplotlib 导致程序无法开启的问题",
"※2、移除在 Ubuntu 上用于安装 UEngine 的安装工具", "※2、移除在 Ubuntu 上用于安装 UEngine 的安装工具",
@ -194,6 +203,7 @@
"Contribute": [ "Contribute": [
"<b>感谢以下用户提供的问题、建议、图标、代码等,如果有遗漏,请及时与开发者联系添加,以及如果侵犯到您的合法权益,也及时与开发者联系:</p>", "<b>感谢以下用户提供的问题、建议、图标、代码等,如果有遗漏,请及时与开发者联系添加,以及如果侵犯到您的合法权益,也及时与开发者联系:</p>",
"<hr>", "<hr>",
"感谢 Bail Pr 修复Python主版本号判断时潜在的问题的补丁",
"感谢 麻木法师1312580754 在星火应用商店QQ交流群展示的接口及其原理", "感谢 麻木法师1312580754 在星火应用商店QQ交流群展示的接口及其原理",
"感谢 Bailhttps://github.com/BailPlus 修复的函数未输入密码自动回车的 bug", "感谢 Bailhttps://github.com/BailPlus 修复的函数未输入密码自动回车的 bug",
"感谢 actionchen917981399@qq.com 提供了新版页面布局1.3.0 ~ 最新版本以及布局代码1.3.0 ~ 1.7.0", "感谢 actionchen917981399@qq.com 提供了新版页面布局1.3.0 ~ 最新版本以及布局代码1.3.0 ~ 1.7.0",

View File

@ -468,6 +468,7 @@ exitProgram = QtWidgets.QAction(langFile[lang]["Uengine Apk Builder"]["Menu"][0]
exitProgram.triggered.connect(window.close) exitProgram.triggered.connect(window.close)
programmenu.addAction(exitProgram) programmenu.addAction(exitProgram)
# #
check.setChecked(True)
frame2.addWidget(check) frame2.addWidget(check)
frame2.addWidget(sizes) frame2.addWidget(sizes)
frame2.addWidget(button3) frame2.addWidget(button3)
@ -476,5 +477,9 @@ window.setWindowTitle(title)
window.setCentralWidget(widget) window.setCentralWidget(widget)
window.setWindowIcon(QtGui.QIcon(iconPath)) window.setWindowIcon(QtGui.QIcon(iconPath))
window.resize(window.frameSize().width() * 1.3, window.frameSize().height() * 1.1) window.resize(window.frameSize().width() * 1.3, window.frameSize().height() * 1.1)
try:
combobox1.setCurrentText(sys.argv[1])
except:
print("无参数")
window.show() window.show()
sys.exit(app.exec_()) sys.exit(app.exec_())

View File

@ -2,14 +2,17 @@
is_tar_checked="0" is_tar_checked="0"
rm -rf /tmp/uengine rm -rf /tmp/uengine
until [ "$is_tar_checked" = "1" ];do until [ "$is_tar_checked" = "1" ];do
echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。" #echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
read tar_path #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'` tar_path=`echo "$tar_path" | sed $'s/\'//g'`
echo "路径为 $tar_path" #echo "路径为 $tar_path"
tar_md5sum=`md5sum $tar_path` tar_md5sum=`md5sum $tar_path`
tar_md5sum=`echo ${tar_md5sum%%/*}` tar_md5sum=`echo ${tar_md5sum%%/*}`
if [ "$tar_md5sum" = "b8429c4d8bfd507b9dc4547e0b71c962" ];then if [ "$tar_md5sum" = "5668b6bb54d28406e527989348126982" ];then
is_tar_checked="1" is_tar_checked="1"
else else
echo $tar_md5sum echo $tar_md5sum

View File

@ -20,6 +20,7 @@ import numpy
import base64 import base64
import shutil import shutil
import zipfile import zipfile
import platform
import requests import requests
import traceback import traceback
import threading import threading
@ -36,6 +37,18 @@ import PyQt5.QtCore as QtCore
import PyQt5.QtWidgets as QtWidgets import PyQt5.QtWidgets as QtWidgets
from getxmlimg import getsavexml from getxmlimg import getsavexml
def PythonLower():
app = QtWidgets.QApplication(sys.argv)
QtWidgets.QMessageBox.critical(None, "错误", "Python 至少需要 3.6 及以上版本,目前版本:" + platform.python_version() + "")
sys.exit(1)
# Python 版本检测,因为 f-string 格式化要至少 Python 3.6 及以上的版本,所以需要检测
# 判断主版本号
if sys.version_info[0] < 3:
PythonLower()
if sys.version_info[1] < 6:
PythonLower()
class UninstallProgram(QtCore.QThread): class UninstallProgram(QtCore.QThread):
info = QtCore.pyqtSignal(str) info = QtCore.pyqtSignal(str)
error = QtCore.pyqtSignal(str) error = QtCore.pyqtSignal(str)
@ -1373,18 +1386,18 @@ class AddNewUengineDesktopLink():
# 添加快捷方式 # 添加快捷方式
def SaveDesktopLink(): def SaveDesktopLink():
try: try:
if os.path.exists("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get())): if os.path.exists("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.text())):
if QtWidgets.QMessageBox.question(widget, "提示", "文件已存在,是否要覆盖?") == QtWidgets.QMessageBox.No: if QtWidgets.QMessageBox.question(widget, "提示", "文件已存在,是否要覆盖?") == QtWidgets.QMessageBox.No:
return return
if not os.path.exists("{}/.local/share/icons/hicolor/256x256/apps/".format(get_home())): if not os.path.exists("{}/.local/share/icons/hicolor/256x256/apps/".format(get_home())):
os.makedirs("{}/.local/share/icons/hicolor/256x256/apps/".format(get_home())) os.makedirs("{}/.local/share/icons/hicolor/256x256/apps/".format(get_home()))
global activityName global activityName
iconSavePath = "{}/.local/share/icons/hicolor/256x256/apps/{}.png".format(get_home(), packageName.get()) iconSavePath = "{}/.local/share/icons/hicolor/256x256/apps/{}.png".format(get_home(), packageName.text())
shutil.copy(programPath + "/defult.png", iconSavePath) shutil.copy(programPath + "/defult.png", iconSavePath)
BuildUengineDesktop(packageName.get(), activityName, packageName.get(), iconSavePath, BuildUengineDesktop(packageName.text(), activityName, packageName.text(), iconSavePath,
"{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get())) "{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.text()))
BuildUengineDesktop(packageName.get(), activityName, packageName.get(), iconSavePath, BuildUengineDesktop(packageName.text(), activityName, packageName.text(), iconSavePath,
"{}/{}.desktop".format(get_desktop_path(), packageName.get())) "{}/{}.desktop".format(get_desktop_path(), packageName.text()))
AddNewUengineDesktopLink.SaveHistory() AddNewUengineDesktopLink.SaveHistory()
QtWidgets.QMessageBox.information(widget, "提示", "创建完毕!") QtWidgets.QMessageBox.information(widget, "提示", "创建完毕!")
except: except:
@ -1396,13 +1409,13 @@ class AddNewUengineDesktopLink():
def DelDesktopLink(): def DelDesktopLink():
try: try:
global packageName global packageName
if not os.path.exists("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get())): if not os.path.exists("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.text())):
QtWidgets.QMessageBox.critical(widget, "错误", "此包名对应的 UEngine 桌面快捷方式不存在!") QtWidgets.QMessageBox.critical(widget, "错误", "此包名对应的 UEngine 桌面快捷方式不存在!")
return return
if QtWidgets.QMessageBox.warning(widget, "警告", "你确定要删除吗?删除后将无法恢复!", QtWidgets.QMessageBox.Ok | QtWidgets.QMessageBox.Cancel, QtWidgets.QMessageBox.Cancel) == QtWidgets.QMessageBox.Cancel: if QtWidgets.QMessageBox.warning(widget, "警告", "你确定要删除吗?删除后将无法恢复!", QtWidgets.QMessageBox.Ok | QtWidgets.QMessageBox.Cancel, QtWidgets.QMessageBox.Cancel) == QtWidgets.QMessageBox.Cancel:
return return
try: try:
os.remove("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.get())) os.remove("{}/.local/share/applications/uengine/{}.desktop".format(get_home(), packageName.text()))
AddNewUengineDesktopLink.SaveHistory() AddNewUengineDesktopLink.SaveHistory()
QtWidgets.QMessageBox.information(widget, "提示", "已删除") QtWidgets.QMessageBox.information(widget, "提示", "已删除")
except: except:
@ -1667,11 +1680,11 @@ if not os.path.exists("/usr/bin/uengine"):
# 非 Deepin/UOS 用户 # 非 Deepin/UOS 用户
# 因为安装器出现问题,所以废弃 # 因为安装器出现问题,所以废弃
else: else:
QtWidgets.QMessageBox.critical(None, "错误", "请安装 UEngine 后继续") #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) 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)
########################### ###########################
# 窗口创建 # 窗口创建
@ -1829,7 +1842,7 @@ uengineData = uengine.addMenu(langFile[lang]["Main"]["MainWindow"]["Menu"][2]["M
uengine.addAction(uengineDeleteUengineCheck) uengine.addAction(uengineDeleteUengineCheck)
uengine.addAction(uengineReinstall) uengine.addAction(uengineReinstall)
uengineRoot = uengine.addMenu(langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][11]["Name"]) uengineRoot = uengine.addMenu(langFile[lang]["Main"]["MainWindow"]["Menu"][2]["Menu"][11]["Name"])
uengineUbuntuInstall.setDisabled(True) #uengineUbuntuInstall.setDisabled(True)
# 绑定信号 # 绑定信号
uengineAllowOrDisallowUpdateAndroidApp.triggered.connect(AllowOrDisallowUpdateAndroidApp) uengineAllowOrDisallowUpdateAndroidApp.triggered.connect(AllowOrDisallowUpdateAndroidApp)
uengineSetHttpProxy.triggered.connect(SetHttpProxy) uengineSetHttpProxy.triggered.connect(SetHttpProxy)
@ -1912,12 +1925,18 @@ uengineBuildRootUengineImage.triggered.connect(BuildRootUengineImage)
uengineReinstallUengineImage.triggered.connect(ReinstallUengineImage) uengineReinstallUengineImage.triggered.connect(ReinstallUengineImage)
helpOpenProgramUrl = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][0]) helpOpenProgramUrl = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][0])
makerWebsize = QtWidgets.QAction("作者个人站")
helpForum = QtWidgets.QAction("程序论坛")
uengineRunnerSearch = QtWidgets.QAction("查询指定程序在 UEngine 的运行情况")
helpUengineRunnerBugUpload = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][2]) helpUengineRunnerBugUpload = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][2])
helpShowHelp = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][4]) helpShowHelp = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][4])
helpRunnerUpdate = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][3]) helpRunnerUpdate = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][3])
helpAbout = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][1]) helpAbout = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][1])
helpAboutQt = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][5]) helpAboutQt = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][5])
help.addAction(helpOpenProgramUrl) help.addAction(helpOpenProgramUrl)
help.addAction(uengineRunnerSearch)
help.addAction(makerWebsize)
help.addAction(helpForum)
help.addAction(helpUengineRunnerBugUpload) help.addAction(helpUengineRunnerBugUpload)
help.addAction(helpShowHelp) help.addAction(helpShowHelp)
help.addAction(helpRunnerUpdate) help.addAction(helpRunnerUpdate)
@ -1929,6 +1948,9 @@ hm1.addAction(hm1_1)
hm1_1.triggered.connect(lambda: webbrowser.open_new_tab("https://gitee.com/gfdgd-xi/deep-wine-runner")) hm1_1.triggered.connect(lambda: webbrowser.open_new_tab("https://gitee.com/gfdgd-xi/deep-wine-runner"))
# 绑定信号 # 绑定信号
helpOpenProgramUrl.triggered.connect(OpenProgramURL) helpOpenProgramUrl.triggered.connect(OpenProgramURL)
uengineRunnerSearch.triggered.connect(lambda: webbrowser.open_new_tab("https://gfdgd-xi.github.io/uengine-runner-info/"))
makerWebsize.triggered.connect(lambda: webbrowser.open_new_tab("https://gfdgd-xi.github.io"))
helpForum.triggered.connect(lambda: webbrowser.open_new_tab("https://gfdgdxi.flarum.cloud/"))
helpUengineRunnerBugUpload.triggered.connect(UengineRunnerBugUpload) helpUengineRunnerBugUpload.triggered.connect(UengineRunnerBugUpload)
helpShowHelp.triggered.connect(ShowHelp) helpShowHelp.triggered.connect(ShowHelp)
helpRunnerUpdate.triggered.connect(UpdateWindow.ShowWindow) helpRunnerUpdate.triggered.connect(UpdateWindow.ShowWindow)