mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-12 17:48:27 +08:00
程序公告
This commit is contained in:
parent
b60f2cd0eb
commit
fc8989db9f
15
Download.py
15
Download.py
@ -1,16 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
import PyQt5.QtGui as QtGui
|
||||
import requests
|
||||
import base64
|
||||
import PyQt5.QtCore as QtCore
|
||||
import PyQt5.QtWidgets as QtWidgets
|
||||
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)
|
||||
web = QtWebEngineWidgets.QWebEngineView()
|
||||
#web.urlChanged.connect()
|
||||
web.loadFinished.connect(lambda: exit())
|
||||
web.setUrl(QtCore.QUrl("http://120.25.153.144/spark-deepin-wine-runner/open/Install.php?Version=a"))
|
||||
#web.show()
|
||||
#web.loadFinished.connect(lambda: print("a"))
|
||||
web.setHtml("<img src='http://120.25.153.144/data/attachment/forum/202211/24/192814r9z5epxap4xxl2nn.jpeg'>")
|
||||
#print(base64.b64decode("aHR0cDovLzEyMC4yNS4xNTMuMTQ0L3NwYXJrLWRlZXBpbi13aW5lLXJ1bm5lci9JbnN0YWxsLnBocD9WZXJzaW9uPQ==").decode("utf-8") + sys.argv[1])
|
||||
web.show()
|
||||
app.exec_()
|
||||
|
1
Makefile
1
Makefile
@ -13,6 +13,7 @@ build:
|
||||
cp -rv Test/ deb/opt/apps/deepin-wine-runner/
|
||||
zip -v -q -r package-script.zip package-script
|
||||
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 ShellList deb/opt/apps/deepin-wine-runner
|
||||
cp -rv QemuDownload.py deb/opt/apps/deepin-wine-runner
|
||||
|
@ -2,7 +2,7 @@
|
||||
# 使用系统默认的 sh 运行
|
||||
#################################################################################################################
|
||||
# 作者:gfdgd xi、为什么您不喜欢熊出没和阿布呢
|
||||
# 版本:2.3.0
|
||||
# 版本:2.6.0
|
||||
# 更新时间:2022年10月02日
|
||||
# 感谢:感谢 wine、deepin-wine 以及星火团队,提供了 wine、deepin-wine、spark-wine-devel 给大家使用,让我能做这个程序
|
||||
# 基于 sh
|
||||
@ -58,4 +58,4 @@ apt update > /dev/null 2>&1 | true
|
||||
# 设置目录权限,让用户可读可写,方便后续删除组件
|
||||
chmod 777 -R /opt/apps/deepin-wine-runner
|
||||
# 向服务器返回安装数加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
|
||||
|
@ -1843,6 +1843,27 @@ def SaveLog():
|
||||
traceback.print_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 的内打包好的容器;
|
||||
※5、优化 Wine 列表显示;
|
||||
※6、新增程序论坛和教程入口;
|
||||
7、优化非基于生态适配脚本的打包器内容自动填充功能;
|
||||
8、优化程序文案;
|
||||
9、新增日志翻译功能;
|
||||
10、程序进一步完善英语翻译(机翻);
|
||||
11、优化程序更新策略;
|
||||
12、优化日志分析功能;
|
||||
13、新增程序评分功能。
|
||||
''')
|
||||
※7、程序公告功能;
|
||||
※8、新增程序评分功能;
|
||||
9、优化非基于生态适配脚本的打包器内容自动填充功能;
|
||||
10、优化程序文案;
|
||||
11、新增日志翻译功能;
|
||||
12、程序进一步完善英语翻译(机翻);
|
||||
13、优化程序更新策略;
|
||||
14、优化日志分析功能。''')
|
||||
for i in information["Thank"]:
|
||||
thankText += f"{i}\n"
|
||||
updateTime = "2022年12月06日"
|
||||
updateTime = "2022年12月07日"
|
||||
aboutProgram = transla.transe("U", """<p>Wine运行器是一个能让Linux用户更加方便地运行Windows应用的程序,内置了对Wine图形化的支持、各种Wine工具、自制的Wine程序打包器和运行库安装工具等。</p>
|
||||
<p>它同时还内置了基于VirtualBox制作的、专供小白使用的Windows虚拟机安装工具,可以做到只需下载系统镜像并点击安装即可,无需考虑虚拟机的安装、创建、分区等操作。</p>
|
||||
<pre>
|
||||
@ -2782,6 +2803,7 @@ wineRunnerHelp = QtWidgets.QAction(transla.transe("U", "Wine运行器和Wine打
|
||||
h3 = QtWidgets.QAction(transla.transe("U", "更新内容"))
|
||||
h4 = QtWidgets.QAction(transla.transe("U", "谢明名单"))
|
||||
h5 = QtWidgets.QAction(transla.transe("U", "更新这个程序"))
|
||||
programInformation = QtWidgets.QAction(transla.transe("U", "获取程序公告"))
|
||||
h6 = QtWidgets.QAction(transla.transe("U", "反馈这个程序的建议和问题"))
|
||||
fenUpload = QtWidgets.QAction(transla.transe("U", "程序评分"))
|
||||
h7 = QtWidgets.QAction(transla.transe("U", "关于这个程序"))
|
||||
@ -2819,6 +2841,7 @@ help.addSeparator()
|
||||
help.addAction(h5)
|
||||
help.addAction(h6)
|
||||
help.addAction(fenUpload)
|
||||
help.addAction(programInformation)
|
||||
help.addAction(h7)
|
||||
help.addAction(h8)
|
||||
help.addSeparator()
|
||||
@ -2846,6 +2869,7 @@ fenUpload.triggered.connect(lambda: threading.Thread(target=os.system, args=[f"p
|
||||
h7.triggered.connect(about_this_program)
|
||||
h8.triggered.connect(lambda: QtWidgets.QMessageBox.aboutQt(widget))
|
||||
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()
|
||||
GetVersion()
|
||||
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user