Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 97b05ea056 | |||
| a9954f611b | |||
|
|
76d850b318 | ||
| 120041c2da | |||
|
|
3a617e1bf3 | ||
| 107a5c4396 | |||
|
|
56eaff9dfb |
Binary file not shown.
@@ -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",
|
"Version": "1.8.1-1",
|
||||||
"System": "Linux(deepin/UOS)",
|
"System": "Linux(deepin/UOS)",
|
||||||
"Tips": [
|
"Tips": [
|
||||||
"更多可见:https://gitee.com/gfdgd-xi/uengine-runner/wikis 或程序的更多帮助",
|
"更多可见:https://gitee.com/gfdgd-xi/uengine-runner/wikis 或程序的更多帮助",
|
||||||
@@ -23,6 +23,11 @@
|
|||||||
"5、如果想要使用adb连接UEngine或其他手机,请使用 1.2.0 以前的版本。(如需连接UEngine请安装adb补丁)"
|
"5、如果想要使用adb连接UEngine或其他手机,请使用 1.2.0 以前的版本。(如需连接UEngine请安装adb补丁)"
|
||||||
],
|
],
|
||||||
"Update": [
|
"Update": [
|
||||||
|
"<b>V1.8.1-1:</b>",
|
||||||
|
"※1、修复缺失依赖 python3-matplotlib 导致程序无法开启的问题",
|
||||||
|
"※2、移除在 Ubuntu 上用于安装 UEngine 的安装工具",
|
||||||
|
"※3、解决了未输入密码自动回车的 bug",
|
||||||
|
"",
|
||||||
"<b>V1.8.1:</b>",
|
"<b>V1.8.1:</b>",
|
||||||
"※1、修复在 APK 详细信息中图标可能过大导致无法正常使用的问题",
|
"※1、修复在 APK 详细信息中图标可能过大导致无法正常使用的问题",
|
||||||
"※2、修复 APK 路径带空格无法正常安装的问题",
|
"※2、修复 APK 路径带空格无法正常安装的问题",
|
||||||
@@ -190,6 +195,7 @@
|
|||||||
"<b>感谢以下用户提供的问题、建议、图标、代码等,如果有遗漏,请及时与开发者联系添加,以及如果侵犯到您的合法权益,也及时与开发者联系:</p>",
|
"<b>感谢以下用户提供的问题、建议、图标、代码等,如果有遗漏,请及时与开发者联系添加,以及如果侵犯到您的合法权益,也及时与开发者联系:</p>",
|
||||||
"<hr>",
|
"<hr>",
|
||||||
"感谢 麻木法师(1312580754) 在星火应用商店QQ交流群展示的接口及其原理",
|
"感谢 麻木法师(1312580754) 在星火应用商店QQ交流群展示的接口及其原理",
|
||||||
|
"感谢 Bail(https://github.com/BailPlus) 修复的函数未输入密码自动回车的 bug",
|
||||||
"感谢 actionchen(917981399@qq.com) 提供了新版页面布局(1.3.0 ~ 最新版本)以及布局代码(1.3.0 ~ 1.7.0)",
|
"感谢 actionchen(917981399@qq.com) 提供了新版页面布局(1.3.0 ~ 最新版本)以及布局代码(1.3.0 ~ 1.7.0)",
|
||||||
"感谢 柚子(https://gitee.com/Limexb) 提供了 UEngine 构建 Root 镜像脚本",
|
"感谢 柚子(https://gitee.com/Limexb) 提供了 UEngine 构建 Root 镜像脚本",
|
||||||
"感谢 星空露光(https://gitee.com/Cynorkyle) 制作了 UEngine 新版图标和安装应用时能选择应用分类的建议",
|
"感谢 星空露光(https://gitee.com/Cynorkyle) 制作了 UEngine 新版图标和安装应用时能选择应用分类的建议",
|
||||||
|
|||||||
@@ -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)
|
||||||
@@ -411,23 +424,29 @@ def GetApkPackageName(apkFilePath: "apk 所在路径")->"获取 apk 包名":
|
|||||||
line = line.replace(" ", "")
|
line = line.replace(" ", "")
|
||||||
return line
|
return line
|
||||||
|
|
||||||
|
'''
|
||||||
|
Bail修改:
|
||||||
|
将以下5个函数的deepin-terminal的"-C"参数改为"-e",
|
||||||
|
解决了BuildRootUengineImage()函数未输入密码自动回车的bug
|
||||||
|
'''
|
||||||
def InstallRootUengineImage():
|
def InstallRootUengineImage():
|
||||||
if not os.path.exists:
|
if not os.path.exists:
|
||||||
os.mkdir("/tmp/uengine-runner")
|
os.mkdir("/tmp/uengine-runner")
|
||||||
write_txt("/tmp/uengine-runner/install.sh", "sudo dpkg -i /tmp/uengine-runner/u*.deb\nsudo apt install -f")
|
write_txt("/tmp/uengine-runner/install.sh", "sudo dpkg -i /tmp/uengine-runner/u*.deb\nsudo apt install -f")
|
||||||
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -C \"wget -P '/tmp/uengine-runner' 'https://hub.fastgit.xyz/gfdgd-xi/uengine-runner/releases/download/U1.2.15/uengine-android-image_1.2.15_amd64.deb' && pkexec bash '/tmp/uengine-runner/install.sh'\""]).start()
|
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e \"wget -P '/tmp/uengine-runner' 'https://hub.fastgit.xyz/gfdgd-xi/uengine-runner/releases/download/U1.2.15/uengine-android-image_1.2.15_amd64.deb' && pkexec bash '/tmp/uengine-runner/install.sh'\""]).start()
|
||||||
|
|
||||||
def UengineUbuntuInstall():
|
def UengineUbuntuInstall():
|
||||||
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -C \"bash '{programPath + '/uengine-installer'}'\""]).start()
|
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e bash '{programPath + '/uengine-installer'}'"]).start()
|
||||||
|
|
||||||
def UbuntuInstallUengine():
|
def UbuntuInstallUengine():
|
||||||
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -C \"bash '{programPath + '/uengine-installer'}'\""]).start()
|
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e bash '{programPath + '/uengine-installer'}'"]).start()
|
||||||
|
|
||||||
def BuildRootUengineImage():
|
def BuildRootUengineImage():
|
||||||
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -C \"bash '{programPath}/root-uengine.sh'\""]).start()
|
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e bash '{programPath}/root-uengine.sh'"]).start()
|
||||||
|
|
||||||
def ReinstallUengineImage():
|
def ReinstallUengineImage():
|
||||||
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e ''pkexec apt reinstall uengine-android-image -y"]).start()
|
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e pkexec apt reinstall uengine-android-image -y"]).start()
|
||||||
|
|
||||||
|
|
||||||
# 生成 uengine 启动文件到桌面
|
# 生成 uengine 启动文件到桌面
|
||||||
def BuildUengineDesktop(packageName: "软件包名", activityName: "activity", showName: "显示名称", iconPath: "程序图标所在目录", savePath:".desktop 文件保存路径", choose="")->"生成 uengine 启动文件到桌面":
|
def BuildUengineDesktop(packageName: "软件包名", activityName: "activity", showName: "显示名称", iconPath: "程序图标所在目录", savePath:".desktop 文件保存路径", choose="")->"生成 uengine 启动文件到桌面":
|
||||||
@@ -1659,10 +1678,13 @@ if not os.path.exists("/usr/bin/uengine"):
|
|||||||
os.system(f"'{programPath}/launch.sh' deepin-terminal -C \"pkexec apt install uengine -y\"")
|
os.system(f"'{programPath}/launch.sh' deepin-terminal -C \"pkexec apt install uengine -y\"")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
# 非 Deepin/UOS 用户
|
# 非 Deepin/UOS 用户
|
||||||
|
# 因为安装器出现问题,所以废弃
|
||||||
else:
|
else:
|
||||||
if QtWidgets.QMessageBox.question(None, "提示", "您的电脑没有安装 UEngine,是否安装 UEngine 以便更好的使用\n这里将会使用 shenmo 提供的脚本进行安装\n安装完后重新启动该程序即可\n提示:无法保证此安装脚本安装的 UEngine 可以使用") == QtWidgets.QMessageBox.Yes:
|
QtWidgets.QMessageBox.critical(None, "错误", "请安装 UEngine 后继续")
|
||||||
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)
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
# 窗口创建
|
# 窗口创建
|
||||||
@@ -1820,6 +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)
|
||||||
# 绑定信号
|
# 绑定信号
|
||||||
uengineAllowOrDisallowUpdateAndroidApp.triggered.connect(AllowOrDisallowUpdateAndroidApp)
|
uengineAllowOrDisallowUpdateAndroidApp.triggered.connect(AllowOrDisallowUpdateAndroidApp)
|
||||||
uengineSetHttpProxy.triggered.connect(SetHttpProxy)
|
uengineSetHttpProxy.triggered.connect(SetHttpProxy)
|
||||||
|
|||||||
@@ -1,17 +1,19 @@
|
|||||||
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.1
|
Version: 1.8.1-1
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Section: utils
|
Section: utils
|
||||||
Installed-Size: 1600
|
Installed-Size: 1600
|
||||||
Maintainer: 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>
|
Maintainer: 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>
|
||||||
Depends: python3, python3-tk, python3-pip, aapt, python3-setuptools, deepin-terminal, curl, python3-pil, python3-requests, adb, fonts-noto-cjk, python3-numpy, wget, inotify-tools, aria2, python3-pyqt5
|
Depends: python3, python3-tk, python3-pip, aapt, python3-setuptools, deepin-terminal, curl, python3-pil, python3-requests, adb, fonts-noto-cjk, python3-numpy, wget, inotify-tools, aria2, python3-pyqt5, python3-matplotlib, python3-urllib3
|
||||||
Recommends: python3-matplotlib, uengine, deepin-elf-verify (>= 0.0.16.7-1)
|
Recommends: uengine, deepin-elf-verify (>= 0.0.16.7-1)
|
||||||
Priority: optional
|
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.1 更新内容:
|
Description: UEngine 运行器,1.8.1-1 更新内容:
|
||||||
|
1、修复依赖缺失导致程序无法开启的问题
|
||||||
|
1.8.1更新内容:
|
||||||
※1、修复在 APK 详细信息中图标可能过大导致无法正常使用的问题
|
※1、修复在 APK 详细信息中图标可能过大导致无法正常使用的问题
|
||||||
※2、修复 APK 路径带空格无法正常安装的问题
|
※2、修复 APK 路径带空格无法正常安装的问题
|
||||||
3、修复打包器打包的 APK 带下划线“_”无法正常打包的问题
|
3、修复打包器打包的 APK 带下划线“_”无法正常打包的问题
|
||||||
|
|||||||
@@ -21,4 +21,4 @@ ln -s /opt/apps/com.gitee.uengine.runner.spark/files/uengine-runner-applist-laun
|
|||||||
# 因为 Ubuntu 的问题,省略
|
# 因为 Ubuntu 的问题,省略
|
||||||
gtk-update-icon-cache /usr/share/icons/bloom > /dev/null | true
|
gtk-update-icon-cache /usr/share/icons/bloom > /dev/null | true
|
||||||
# 向服务器返回安装数加1(不显示内容且忽略错误)
|
# 向服务器返回安装数加1(不显示内容且忽略错误)
|
||||||
curl https://304626p927.goho.co/uengine-runner/Install.php?Version=1.8.1 -s > /dev/null | true
|
curl https://304626p927.goho.co/uengine-runner/Install.php?Version=1.8.1-1 -s > /dev/null | true
|
||||||
|
|||||||
@@ -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",
|
"Version": "1.8.1-1",
|
||||||
"System": "Linux(deepin/UOS)",
|
"System": "Linux(deepin/UOS)",
|
||||||
"Tips": [
|
"Tips": [
|
||||||
"更多可见:https://gitee.com/gfdgd-xi/uengine-runner/wikis 或程序的更多帮助",
|
"更多可见:https://gitee.com/gfdgd-xi/uengine-runner/wikis 或程序的更多帮助",
|
||||||
@@ -23,6 +23,11 @@
|
|||||||
"5、如果想要使用adb连接UEngine或其他手机,请使用 1.2.0 以前的版本。(如需连接UEngine请安装adb补丁)"
|
"5、如果想要使用adb连接UEngine或其他手机,请使用 1.2.0 以前的版本。(如需连接UEngine请安装adb补丁)"
|
||||||
],
|
],
|
||||||
"Update": [
|
"Update": [
|
||||||
|
"<b>V1.8.1-1:</b>",
|
||||||
|
"※1、修复缺失依赖 python3-matplotlib 导致程序无法开启的问题",
|
||||||
|
"※2、移除在 Ubuntu 上用于安装 UEngine 的安装工具",
|
||||||
|
"※3、解决了未输入密码自动回车的 bug",
|
||||||
|
"",
|
||||||
"<b>V1.8.1:</b>",
|
"<b>V1.8.1:</b>",
|
||||||
"※1、修复在 APK 详细信息中图标可能过大导致无法正常使用的问题",
|
"※1、修复在 APK 详细信息中图标可能过大导致无法正常使用的问题",
|
||||||
"※2、修复 APK 路径带空格无法正常安装的问题",
|
"※2、修复 APK 路径带空格无法正常安装的问题",
|
||||||
@@ -185,11 +190,12 @@
|
|||||||
"11、deepin 终端",
|
"11、deepin 终端",
|
||||||
"……"
|
"……"
|
||||||
],
|
],
|
||||||
"Time": "2022年08月29日",
|
"Time": "2022年08月30日",
|
||||||
"Contribute": [
|
"Contribute": [
|
||||||
"<b>感谢以下用户提供的问题、建议、图标、代码等,如果有遗漏,请及时与开发者联系添加,以及如果侵犯到您的合法权益,也及时与开发者联系:</p>",
|
"<b>感谢以下用户提供的问题、建议、图标、代码等,如果有遗漏,请及时与开发者联系添加,以及如果侵犯到您的合法权益,也及时与开发者联系:</p>",
|
||||||
"<hr>",
|
"<hr>",
|
||||||
"感谢 麻木法师(1312580754) 在星火应用商店QQ交流群展示的接口及其原理",
|
"感谢 麻木法师(1312580754) 在星火应用商店QQ交流群展示的接口及其原理",
|
||||||
|
"感谢 Bail(https://github.com/BailPlus) 修复的函数未输入密码自动回车的 bug",
|
||||||
"感谢 actionchen(917981399@qq.com) 提供了新版页面布局(1.3.0 ~ 最新版本)以及布局代码(1.3.0 ~ 1.7.0)",
|
"感谢 actionchen(917981399@qq.com) 提供了新版页面布局(1.3.0 ~ 最新版本)以及布局代码(1.3.0 ~ 1.7.0)",
|
||||||
"感谢 柚子(https://gitee.com/Limexb) 提供了 UEngine 构建 Root 镜像脚本",
|
"感谢 柚子(https://gitee.com/Limexb) 提供了 UEngine 构建 Root 镜像脚本",
|
||||||
"感谢 星空露光(https://gitee.com/Cynorkyle) 制作了 UEngine 新版图标和安装应用时能选择应用分类的建议",
|
"感谢 星空露光(https://gitee.com/Cynorkyle) 制作了 UEngine 新版图标和安装应用时能选择应用分类的建议",
|
||||||
|
|||||||
@@ -411,23 +411,29 @@ def GetApkPackageName(apkFilePath: "apk 所在路径")->"获取 apk 包名":
|
|||||||
line = line.replace(" ", "")
|
line = line.replace(" ", "")
|
||||||
return line
|
return line
|
||||||
|
|
||||||
|
'''
|
||||||
|
Bail修改:
|
||||||
|
将以下5个函数的deepin-terminal的"-C"参数改为"-e",
|
||||||
|
解决了BuildRootUengineImage()函数未输入密码自动回车的bug
|
||||||
|
'''
|
||||||
def InstallRootUengineImage():
|
def InstallRootUengineImage():
|
||||||
if not os.path.exists:
|
if not os.path.exists:
|
||||||
os.mkdir("/tmp/uengine-runner")
|
os.mkdir("/tmp/uengine-runner")
|
||||||
write_txt("/tmp/uengine-runner/install.sh", "sudo dpkg -i /tmp/uengine-runner/u*.deb\nsudo apt install -f")
|
write_txt("/tmp/uengine-runner/install.sh", "sudo dpkg -i /tmp/uengine-runner/u*.deb\nsudo apt install -f")
|
||||||
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -C \"wget -P '/tmp/uengine-runner' 'https://hub.fastgit.xyz/gfdgd-xi/uengine-runner/releases/download/U1.2.15/uengine-android-image_1.2.15_amd64.deb' && pkexec bash '/tmp/uengine-runner/install.sh'\""]).start()
|
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e \"wget -P '/tmp/uengine-runner' 'https://hub.fastgit.xyz/gfdgd-xi/uengine-runner/releases/download/U1.2.15/uengine-android-image_1.2.15_amd64.deb' && pkexec bash '/tmp/uengine-runner/install.sh'\""]).start()
|
||||||
|
|
||||||
def UengineUbuntuInstall():
|
def UengineUbuntuInstall():
|
||||||
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -C \"bash '{programPath + '/uengine-installer'}'\""]).start()
|
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e bash '{programPath + '/uengine-installer'}'"]).start()
|
||||||
|
|
||||||
def UbuntuInstallUengine():
|
def UbuntuInstallUengine():
|
||||||
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -C \"bash '{programPath + '/uengine-installer'}'\""]).start()
|
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e bash '{programPath + '/uengine-installer'}'"]).start()
|
||||||
|
|
||||||
def BuildRootUengineImage():
|
def BuildRootUengineImage():
|
||||||
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -C \"bash '{programPath}/root-uengine.sh'\""]).start()
|
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e bash '{programPath}/root-uengine.sh'"]).start()
|
||||||
|
|
||||||
def ReinstallUengineImage():
|
def ReinstallUengineImage():
|
||||||
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e ''pkexec apt reinstall uengine-android-image -y"]).start()
|
threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e pkexec apt reinstall uengine-android-image -y"]).start()
|
||||||
|
|
||||||
|
|
||||||
# 生成 uengine 启动文件到桌面
|
# 生成 uengine 启动文件到桌面
|
||||||
def BuildUengineDesktop(packageName: "软件包名", activityName: "activity", showName: "显示名称", iconPath: "程序图标所在目录", savePath:".desktop 文件保存路径", choose="")->"生成 uengine 启动文件到桌面":
|
def BuildUengineDesktop(packageName: "软件包名", activityName: "activity", showName: "显示名称", iconPath: "程序图标所在目录", savePath:".desktop 文件保存路径", choose="")->"生成 uengine 启动文件到桌面":
|
||||||
@@ -1659,10 +1665,13 @@ if not os.path.exists("/usr/bin/uengine"):
|
|||||||
os.system(f"'{programPath}/launch.sh' deepin-terminal -C \"pkexec apt install uengine -y\"")
|
os.system(f"'{programPath}/launch.sh' deepin-terminal -C \"pkexec apt install uengine -y\"")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
# 非 Deepin/UOS 用户
|
# 非 Deepin/UOS 用户
|
||||||
|
# 因为安装器出现问题,所以废弃
|
||||||
else:
|
else:
|
||||||
if QtWidgets.QMessageBox.question(None, "提示", "您的电脑没有安装 UEngine,是否安装 UEngine 以便更好的使用\n这里将会使用 shenmo 提供的脚本进行安装\n安装完后重新启动该程序即可\n提示:无法保证此安装脚本安装的 UEngine 可以使用") == QtWidgets.QMessageBox.Yes:
|
QtWidgets.QMessageBox.critical(None, "错误", "请安装 UEngine 后继续")
|
||||||
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)
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
# 窗口创建
|
# 窗口创建
|
||||||
@@ -1820,6 +1829,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)
|
||||||
# 绑定信号
|
# 绑定信号
|
||||||
uengineAllowOrDisallowUpdateAndroidApp.triggered.connect(AllowOrDisallowUpdateAndroidApp)
|
uengineAllowOrDisallowUpdateAndroidApp.triggered.connect(AllowOrDisallowUpdateAndroidApp)
|
||||||
uengineSetHttpProxy.triggered.connect(SetHttpProxy)
|
uengineSetHttpProxy.triggered.connect(SetHttpProxy)
|
||||||
|
|||||||
@@ -18,10 +18,12 @@ else
|
|||||||
"$dir/uengine-runner-applist-launch.sh" deepin-terminal -C "pkexec apt install uengine -y"
|
"$dir/uengine-runner-applist-launch.sh" deepin-terminal -C "pkexec apt install uengine -y"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "非 Deepin/UOS 系统,使用 shenmo 提供的脚本安装\n暂未保证此安装脚本一定安装成功"
|
# 因为安装器出现问题,所以废弃
|
||||||
zenity --question --text="您还未安装 UEngine,是否现在安装?\n将会使用 shenmo 提供的脚本进行安装\n暂未保证此安装脚本一定安装成功" --no-wrap
|
zenity --error --text="请安装 UEngine 后继续" --no-wrap
|
||||||
if [[ $? = 0 ]]; then
|
#echo "非 Deepin/UOS 系统,使用 shenmo 提供的脚本安装\n暂未保证此安装脚本一定安装成功"
|
||||||
deepin-terminal -C "bash /opt/apps/com.gitee.uengine.runner.spark/files/uengine-installer"
|
#zenity --question --text="您还未安装 UEngine,是否现在安装?\n将会使用 shenmo 提供的脚本进行安装\n暂未保证此安装脚本一定安装成功" --no-wrap
|
||||||
fi
|
#if [[ $? = 0 ]]; then
|
||||||
|
# deepin-terminal -C "bash /opt/apps/com.gitee.uengine.runner.spark/files/uengine-installer"
|
||||||
|
#fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -18,10 +18,12 @@ else
|
|||||||
"$dir/uengine-runner-applist-launch.sh" deepin-terminal -C "pkexec apt install uengine -y"
|
"$dir/uengine-runner-applist-launch.sh" deepin-terminal -C "pkexec apt install uengine -y"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "非 Deepin/UOS 系统,使用 shenmo 提供的脚本安装\n暂未保证此安装脚本一定安装成功"
|
# 因为安装器出现问题,所以废弃
|
||||||
zenity --question --text="您还未安装 UEngine,是否现在安装?\n将会使用 shenmo 提供的脚本进行安装\n暂未保证此安装脚本一定安装成功" --no-wrap
|
zenity --error --text="请安装 UEngine 后继续" --no-wrap
|
||||||
if [[ $? = 0 ]]; then
|
#echo "非 Deepin/UOS 系统,使用 shenmo 提供的脚本安装\n暂未保证此安装脚本一定安装成功"
|
||||||
deepin-terminal -C "bash /opt/apps/com.gitee.uengine.runner.spark/files/uengine-installer"
|
#zenity --question --text="您还未安装 UEngine,是否现在安装?\n将会使用 shenmo 提供的脚本进行安装\n暂未保证此安装脚本一定安装成功" --no-wrap
|
||||||
fi
|
#if [[ $? = 0 ]]; then
|
||||||
|
# deepin-terminal -C "bash /opt/apps/com.gitee.uengine.runner.spark/files/uengine-installer"
|
||||||
|
#fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user