From ef0f359fa5f20c6dc21165cef3e3b7d0c43d2b30 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Wed, 18 Jan 2023 15:09:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=A4=9A=E7=BB=88=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Icon/doge.png | Bin 0 -> 11152 bytes Model/__init__.py | 1 - Model/__pycache__/__init__.cpython-37.pyc | Bin 1101 -> 1103 bytes WebSize/index.html | 7 ---- mainwindow.py | 42 +++++++++++++++++----- 5 files changed, 33 insertions(+), 17 deletions(-) create mode 100644 Icon/doge.png delete mode 100644 WebSize/index.html diff --git a/Icon/doge.png b/Icon/doge.png new file mode 100644 index 0000000000000000000000000000000000000000..0292729a890f14c692b36b0fc203df49ff988411 GIT binary patch literal 11152 zcmV;BD{s_^P)PyLN=ZaPRCodHeF>OdMYZlar{{T0(qpFXkde#~5(0!V48jEg5e4Nwy$+A3AcEHc z!;?vP@IdiXF4wDG5CI_wG8hR2Fk%8BgoJeFPABP3I_ae6c|7O+|Ej9pyXS$Zyzk3O z_O7Z`Ypq&CRqfh)*FG(B0#10~ga=M|;GgD!z(1|!{|_2IaIehh=#Z&_2ssu^kfKT7 zlG@{~_K5)W72>IFM+vUI@bf37Yl6z!aSC_1ZuO|h9fpE^UvjcHi zW1%PdQ@GQn>{}tJF4~Es*w_$|Z%fyYg$pHR>Qp$M9h-J_ zO6A56C3Wg#iA;#q(QxRk4bpP7MlcgJL`BHdi9e9TLn|5Cn&y;1luja@+BkEB(eD{kbHz)ksQf zNK%7PA|fD-F%i<(87qzXw@8bhcCdW-F^Sq+AuHkh%Se|xZMtMGSb!X-9R>isKOB;> zRc}ZjA}D$1Emd4ceZ7?a83P84u=AINcgR;zF)A1`03|Vrv5S`&66bsy zhyyRJl8&Yp8GFhs(B*+9B$Xd*m)c^zD7VMN%B1oCF6D-KWM_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OOpcF;&yc+9S4mU`=3q)^C&N^-{k7+1Z-APti#up4bsulq#x7urxeA+BqmFI`WS4kDv)s}os4hOu$^$`d{4ge zY0x>RBjb8E6=2UM_QFB@09r$Y;#{p>5aRaiN`;KyMs( z;2*<;Nw2~Q85Ev4^+FkY(S7(;8N3(Jx1cau4YnzX{J~KF*g*O7+FRLc`{7q-QjV#1 zy||$`$Fheaha&*muSZb~%mNKi*RW3OmbG{MS zeg3-yfa1A2!YuN8*oaM;c!rdcCu5i2C20DnSk;$%( zPWP$EAaMEUg5l@ax=v}{kFPj4JuQv<-<9Mk%VgZS-os zsr>7INQ3M3My*Hi_abk@&o<+t@%I6rb$_1*D3yN<4u6pC=kQTJ%fV=D6JPLoNu7Tk z{=`5kQ8pM|Qu5ze$Kz%wsqifPVV{K(pEnn?Q>=A*KkA|fchnxjL$SA{Zs%(J)ujFS zvsbzJq3y3qV&PINo6`-Q&vx7>FwW=8l-dth;=pHDc0(0nUdG1@ALkC&G(7aVAB%=& z8Vv=1H=(gbR=^G4LeJ;igPk3*k}~@W1mjwah+JUs^1ZbYJ@{Fv+m63p*HD4gPbB`B zLKcp35|xONfv2H#lpbvj>hLc7Njw@7mopPTs(OK>%)|yQ?#T0RE9v3TqN@#juXo48@T=guR-( z@dw6I6BPizUG|5f@W;kvKKA%dML?!vx|oWYCe2URI}e%~(CmU?yX?0Oo48B) zA9YdftOU8!ipfu(dO2glC%|4J$C-5gcaKZy8 iJaEDTCp<735Bxu_KIZ})^jBH{0000 - UEngine 运行器 - - -

UEngine 运行器下载链接:

-

https://gitee.com/gfdgd-xi-org/uengine-runner/releases

- \ No newline at end of file diff --git a/mainwindow.py b/mainwindow.py index f2e2866..c961e0e 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -443,14 +443,16 @@ def InstallRootUengineImage(): if not os.path.exists: os.mkdir("/tmp/uengine-runner") 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 -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() + #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() + threading.Thread(target=OpenTerminal, args=[f"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(): - threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e bash '{programPath + '/uengine-installer'}'"]).start() + threading.Thread(target=OpenTerminal, args=[f"bash '{programPath + '/uengine-installer'}'"]).start() def UengineUbuntuInstallRoot(): # 加 SuperSU 参数 - threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e bash '{programPath + '/uengine-installer'} SuperSU'"]).start() + threading.Thread(target=OpenTerminal, args=[f"bash '{programPath + '/uengine-installer'}' SuperSU"]).start() def UbuntuInstallUengine(): threading.Thread(target=os.system, args=[f"'{programPath}/launch.sh' deepin-terminal -e bash '{programPath + '/uengine-installer'}'"]).start() @@ -1136,14 +1138,36 @@ class UpdateWindow(): ok.clicked.connect(UpdateWindow.Update) cancel = QtWidgets.QPushButton("取消") cancel.clicked.connect(UpdateWindow.update.close) + ok.setDisabled(True) try: - UpdateWindow.data = json.loads(requests.get("https://304626p927.goho.co/uengine-runner/update.json").text) + UpdateWindow.data = json.loads(requests.get("https://code.gitlink.org.cn/gfdgd-xi-org/wine-runner-update-information/raw/branch/master/uengine-runner/update.json").text) versionLabel = QtWidgets.QLabel(f"当前版本:{version}\n最新版本:{UpdateWindow.data['Version']}\n更新内容:") if UpdateWindow.data["Version"] == version: updateText.setText("此为最新版本,无需更新") ok.setDisabled(True) else: - updateText.setText(UpdateWindow.data["New"].replace("\\n", "\n")) + # 版本号读取(防止出现高版本号提示要“升级”到低版本号的问题) + localVersionList = version.split(".") + webVersionList = UpdateWindow.data['Version'].split(".") + for i in range(len(localVersionList)): + local = int(localVersionList[i]) + web = int(webVersionList[i]) + if web < local: + updateText.setHtml(f"""

此为最新版本,无需更新,但似乎您当前使用的程序版本比云端版本还要高。

+

出现这个问题可能会有如下几种情况:

+

1、使用编译或者内测版本

+

2、自己修改了程序版本

+

3、作者忘记更新云端上的更新信息了

+

如果是第三种情况,请反馈到此:https://gitee.com/gfdgd-xi-org/uengine-runner/issues/I6B091

+

或者是这里:https://bbs.racoongx.cn/t/bugs

+

""") + ok.setDisabled(True) + break + if web > local: + updateText.setText(UpdateWindow.data["New"].replace("\\n", "\n")) + ok.setEnabled(True) + break + except: traceback.print_exc() QtWidgets.QMessageBox.critical(updateWidget, "错误", "无法连接服务器!") @@ -1153,7 +1177,7 @@ class UpdateWindow(): updateWidgetLayout.addWidget(cancel, 2, 1, 1, 1) updateWidget.setLayout(updateWidgetLayout) UpdateWindow.update.setCentralWidget(updateWidget) - UpdateWindow.update.setWindowTitle("检查更新") + UpdateWindow.update.setWindowTitle("检查 UEngine 运行器更新") UpdateWindow.update.setWindowIcon(QtGui.QIcon(iconPath)) UpdateWindow.update.resize(updateWidget.frameGeometry().width(), int(updateWidget.frameGeometry().height() * 1.5)) UpdateWindow.update.show() @@ -2035,8 +2059,8 @@ helpShowHelp = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3] helpRunnerUpdate = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][3]) helpFen = QtWidgets.QAction("程序评分") helpWebInformation = QtWidgets.QAction("程序公告") -helpAbout = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][1]) -helpAboutQt = QtWidgets.QAction(langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][5]) +helpAbout = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(9), langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][1]) +helpAboutQt = QtWidgets.QAction(QtWidgets.QApplication.style().standardIcon(9), langFile[lang]["Main"]["MainWindow"]["Menu"][3]["Menu"][5]) help.addAction(helpOpenProgramUrl) help.addAction(uengineRunnerSearch) help.addAction(makerWebsize) @@ -2080,7 +2104,7 @@ window.setFixedSize(window.frameSize().width(), window.frameSize().height()) # (2023年1月22日) if datetime.datetime.now().year == 2023 and datetime.datetime.now().month == 1 and datetime.datetime.now().day == 22 and not os.path.exists(f"{get_home()}/.config/uengine-runner/2023-sf.lock"): os.system(f"touch '{get_home()}/.config/uengine-runner/2023-sf.lock'") - QtWidgets.QMessageBox.information(window, "祝福", "今天是癸卯年正月初一,这里代表 RacoonGX 团队祝您在新的一年里万事顺意、幸福美满、官运亨通、美梦连连、吉祥如意、万事顺利、荣华富贵、一帆风顺、金玉满堂、五福临门、龙凤呈祥、龙门精神、百业兴旺、六畜兴旺、五谷丰登、喜上眉梢!") + QtWidgets.QMessageBox.information(window, "新年祝福", "今天是癸卯年正月初一,这里代表 RacoonGX 团队祝您在新的一年里万事顺意、幸福美满、官运亨通、美梦连连、吉祥如意、万事顺利、荣华富贵、一帆风顺、金玉满堂、五福临门、龙凤呈祥、龙门精神、百业兴旺、六畜兴旺、五谷丰登、喜上眉梢!") if version == "2.0.0": title += " 新春版" window.setWindowTitle(title)