程序公告

This commit is contained in:
gfdgd xi 2022-12-07 13:18:49 +08:00
parent b60f2cd0eb
commit fc8989db9f
6 changed files with 48 additions and 16 deletions

View File

@ -1,16 +1,23 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import sys import sys
import PyQt5.QtGui as QtGui import requests
import base64
import PyQt5.QtCore as QtCore import PyQt5.QtCore as QtCore
import PyQt5.QtWidgets as QtWidgets import PyQt5.QtWidgets as QtWidgets
import PyQt5.QtWebEngineWidgets as QtWebEngineWidgets import PyQt5.QtWebEngineWidgets as QtWebEngineWidgets
#!/usr/bin/env python3
import sys
import base64
import requests
print(requests.get(base64.b64decode("aHR0cDovLzEyMC4yNS4xNTMuMTQ0L3NwYXJrLWRlZXBpbi13aW5lLXJ1bm5lci9JbnN0YWxsLnBocD9WZXJzaW9uPQ==").decode("utf-8") + sys.argv[1]).text)
app = QtWidgets.QApplication(sys.argv) app = QtWidgets.QApplication(sys.argv)
web = QtWebEngineWidgets.QWebEngineView() web = QtWebEngineWidgets.QWebEngineView()
#web.urlChanged.connect() #web.urlChanged.connect()
web.loadFinished.connect(lambda: exit()) #web.loadFinished.connect(lambda: print("a"))
web.setUrl(QtCore.QUrl("http://120.25.153.144/spark-deepin-wine-runner/open/Install.php?Version=a")) web.setHtml("<img src='http://120.25.153.144/data/attachment/forum/202211/24/192814r9z5epxap4xxl2nn.jpeg'>")
#web.show() #print(base64.b64decode("aHR0cDovLzEyMC4yNS4xNTMuMTQ0L3NwYXJrLWRlZXBpbi13aW5lLXJ1bm5lci9JbnN0YWxsLnBocD9WZXJzaW9uPQ==").decode("utf-8") + sys.argv[1])
web.show()
app.exec_() app.exec_()

View File

@ -13,6 +13,7 @@ build:
cp -rv Test/ deb/opt/apps/deepin-wine-runner/ cp -rv Test/ deb/opt/apps/deepin-wine-runner/
zip -v -q -r package-script.zip package-script zip -v -q -r package-script.zip package-script
cp -rv VM deb/opt/apps/deepin-wine-runner cp -rv VM deb/opt/apps/deepin-wine-runner
cp -rv Download.py deb/opt/apps/deepin-wine-runner/
cp -rv AllInstall.py deb/opt/apps/deepin-wine-runner cp -rv AllInstall.py deb/opt/apps/deepin-wine-runner
cp -rv ShellList deb/opt/apps/deepin-wine-runner cp -rv ShellList deb/opt/apps/deepin-wine-runner
cp -rv QemuDownload.py deb/opt/apps/deepin-wine-runner cp -rv QemuDownload.py deb/opt/apps/deepin-wine-runner

View File

@ -2,7 +2,7 @@
# 使用系统默认的 sh 运行 # 使用系统默认的 sh 运行
################################################################################################################# #################################################################################################################
# 作者gfdgd xi、为什么您不喜欢熊出没和阿布呢 # 作者gfdgd xi、为什么您不喜欢熊出没和阿布呢
# 版本2.3.0 # 版本2.6.0
# 更新时间2022年10月02日 # 更新时间2022年10月02日
# 感谢:感谢 wine、deepin-wine 以及星火团队,提供了 wine、deepin-wine、spark-wine-devel 给大家使用,让我能做这个程序 # 感谢:感谢 wine、deepin-wine 以及星火团队,提供了 wine、deepin-wine、spark-wine-devel 给大家使用,让我能做这个程序
# 基于 sh # 基于 sh
@ -58,4 +58,4 @@ apt update > /dev/null 2>&1 | true
# 设置目录权限,让用户可读可写,方便后续删除组件 # 设置目录权限,让用户可读可写,方便后续删除组件
chmod 777 -R /opt/apps/deepin-wine-runner chmod 777 -R /opt/apps/deepin-wine-runner
# 向服务器返回安装数加1不显示内容且忽略错误 # 向服务器返回安装数加1不显示内容且忽略错误
curl http://gfdgdxi.freeee.ml/spark-deepin-wine-runner/Install.php?Version=2.6.0 -s > /dev/null 2>&1 | true python3 /opt/apps/deepin-wine-runner/Download.py > /dev/null 2>&1 | true

View File

@ -1843,6 +1843,27 @@ def SaveLog():
traceback.print_exc() traceback.print_exc()
QtWidgets.QMessageBox.critical(window, "错误", traceback.format_exc()) QtWidgets.QMessageBox.critical(window, "错误", traceback.format_exc())
def GetNewInformation():
try:
text = requests.get("https://code.gitlink.org.cn/gfdgd_xi/wine-runner-list/raw/branch/master/information/index.html").text
except:
traceback.print_exc()
text = """<p>无法连接到服务器</p>
<hr/>
<p>你可以尝试</p>
<p>1. 判断使用的是否使用吾爱版本如果使用吾爱版本则无法连接</p>
<p>2. 判断是否能正常连接网络</p>"""
global webInformation
if bad:
webInformation = QtWidgets.QTextBrowser()
else:
webInformation = QtWebEngineWidgets.QWebEngineView()
webInformation.setHtml(text)
webInformation.setWindowTitle("获取程序公告")
webInformation.setWindowIcon(QtGui.QIcon(iconPath))
webInformation.resize(int(webInformation.frameGeometry().width() * 1.3), int(webInformation.frameGeometry().height() * 1.1))
webInformation.show()
########################### ###########################
# 加载配置 # 加载配置
########################### ###########################
@ -2281,17 +2302,17 @@ updateThingsString = transla.transe("U", '''※1、支持使用 Qemu + Chroot
4支持解压指定 deb 的内打包好的容器 4支持解压指定 deb 的内打包好的容器
5优化 Wine 列表显示 5优化 Wine 列表显示
6新增程序论坛和教程入口 6新增程序论坛和教程入口
7优化非基于生态适配脚本的打包器内容自动填充功能 7程序公告功能
8优化程序文案 8新增程序评分功能
9新增日志翻译功能 9优化非基于生态适配脚本的打包器内容自动填充功能
10程序进一步完善英语翻译机翻 10优化程序文案
11优化程序更新策略 11新增日志翻译功能
12优化日志分析功能 12程序进一步完善英语翻译机翻
13新增程序评分功能 13优化程序更新策略
''') 14优化日志分析功能''')
for i in information["Thank"]: for i in information["Thank"]:
thankText += f"{i}\n" thankText += f"{i}\n"
updateTime = "2022年12月06" updateTime = "2022年12月07"
aboutProgram = transla.transe("U", """<p>Wine运行器是一个能让Linux用户更加方便地运行Windows应用的程序内置了对Wine图形化的支持、各种Wine工具、自制的Wine程序打包器和运行库安装工具等。</p> aboutProgram = transla.transe("U", """<p>Wine运行器是一个能让Linux用户更加方便地运行Windows应用的程序内置了对Wine图形化的支持、各种Wine工具、自制的Wine程序打包器和运行库安装工具等。</p>
<p>它同时还内置了基于VirtualBox制作的专供小白使用的Windows虚拟机安装工具可以做到只需下载系统镜像并点击安装即可无需考虑虚拟机的安装创建分区等操作</p> <p>它同时还内置了基于VirtualBox制作的专供小白使用的Windows虚拟机安装工具可以做到只需下载系统镜像并点击安装即可无需考虑虚拟机的安装创建分区等操作</p>
<pre> <pre>
@ -2782,6 +2803,7 @@ wineRunnerHelp = QtWidgets.QAction(transla.transe("U", "Wine运行器和Wine打
h3 = QtWidgets.QAction(transla.transe("U", "更新内容")) h3 = QtWidgets.QAction(transla.transe("U", "更新内容"))
h4 = QtWidgets.QAction(transla.transe("U", "谢明名单")) h4 = QtWidgets.QAction(transla.transe("U", "谢明名单"))
h5 = QtWidgets.QAction(transla.transe("U", "更新这个程序")) h5 = QtWidgets.QAction(transla.transe("U", "更新这个程序"))
programInformation = QtWidgets.QAction(transla.transe("U", "获取程序公告"))
h6 = QtWidgets.QAction(transla.transe("U", "反馈这个程序的建议和问题")) h6 = QtWidgets.QAction(transla.transe("U", "反馈这个程序的建议和问题"))
fenUpload = QtWidgets.QAction(transla.transe("U", "程序评分")) fenUpload = QtWidgets.QAction(transla.transe("U", "程序评分"))
h7 = QtWidgets.QAction(transla.transe("U", "关于这个程序")) h7 = QtWidgets.QAction(transla.transe("U", "关于这个程序"))
@ -2819,6 +2841,7 @@ help.addSeparator()
help.addAction(h5) help.addAction(h5)
help.addAction(h6) help.addAction(h6)
help.addAction(fenUpload) help.addAction(fenUpload)
help.addAction(programInformation)
help.addAction(h7) help.addAction(h7)
help.addAction(h8) help.addAction(h8)
help.addSeparator() help.addSeparator()
@ -2846,6 +2869,7 @@ fenUpload.triggered.connect(lambda: threading.Thread(target=os.system, args=[f"p
h7.triggered.connect(about_this_program) h7.triggered.connect(about_this_program)
h8.triggered.connect(lambda: QtWidgets.QMessageBox.aboutQt(widget)) h8.triggered.connect(lambda: QtWidgets.QMessageBox.aboutQt(widget))
hm1_1.triggered.connect(lambda: webbrowser.open_new_tab("https://gitee.com/gfdgd-xi/uengine-runner")) hm1_1.triggered.connect(lambda: webbrowser.open_new_tab("https://gitee.com/gfdgd-xi/uengine-runner"))
programInformation.triggered.connect(GetNewInformation)
# 异同步获取信息 # 异同步获取信息
#threading.Thread(target=GetVersion).start() #threading.Thread(target=GetVersion).start()
GetVersion() GetVersion()

File diff suppressed because one or more lines are too long