mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2026-04-06 07:30:18 +08:00
3.2.1基本完成
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
# 使用系统默认的 python3 运行
|
||||
#################################################################################################################
|
||||
# 作者:gfdgd xi、为什么您不喜欢熊出没和阿布呢
|
||||
# 作者:gfdgd xi
|
||||
# 版本:3.0.0
|
||||
# 更新时间:2022年12月10日
|
||||
# 感谢:感谢 wine、deepin-wine 以及星火团队,提供了 wine、deepin-wine、spark-wine-devel 给大家使用,让我能做这个程序
|
||||
@@ -14,6 +14,7 @@ import os
|
||||
import sys
|
||||
import time
|
||||
import json
|
||||
import pyperclip
|
||||
import random
|
||||
import base64
|
||||
import shutil
|
||||
@@ -1880,7 +1881,10 @@ class ValueCheck():
|
||||
if file == "":
|
||||
return
|
||||
try:
|
||||
QtWidgets.QInputDialog.getMultiLineText(window, "值", "计算得到的值", self.link[types](self, file))
|
||||
value = self.link[types](self, file)
|
||||
if QtWidgets.QInputDialog.getText(window, "值", "下面是计算得到的值,<b>是否要复制到剪切板?</b>", QtWidgets.QLineEdit.Normal, value)[1]:
|
||||
pyperclip.copy(value)
|
||||
QtWidgets.QMessageBox.information(window, "提示", "复制成功!")
|
||||
except:
|
||||
traceback.print_exc()
|
||||
QtWidgets.QMessageBox.critical(window, "错误", traceback.format_exc())
|
||||
@@ -2409,11 +2413,18 @@ exe路径\' 参数 \'
|
||||
<code>N: 鉴于仓库 'https://community-packages.deepin.com/beige beige InRelease' 不支持 'i386' 体系结构,跳过配置文件 'main/binary-i386/Packages' 的获取。</code>''')
|
||||
updateThingsString = transla.transe("U", '''※1、Windows 虚拟机安装工具支持非 X86 架构;
|
||||
※2、应用打包器可以与星火应用商店配合构建 arm/all 全架构的 Wine 包;
|
||||
3、运行器和打包器支持调用 spark-wine8;
|
||||
※3、Windows 虚拟机安装工具支持调用 Qemu;
|
||||
※4、新增 Qemu User 运行 Wine 的帮助入口;
|
||||
※5、修复 Windows 虚拟机的自动配置镜像缺少 aria2c.exe 的故障;
|
||||
※6、支持在更新程序版本时自动关闭程序进程;
|
||||
7、运行器和打包器支持调用 spark-wine8;
|
||||
8、修改作者信息;
|
||||
9、新增安装包构建时间;
|
||||
10、优化 Wine 运行器更新策略。
|
||||
''')
|
||||
for i in information["Thank"]:
|
||||
thankText += f"{i}\n"
|
||||
updateTime = "2023年03月19日"
|
||||
updateTime = "2023年04月29日"
|
||||
aboutProgram = transla.transe("U", """<p>Wine运行器是一个能让Linux用户更加方便地运行Windows应用的程序,内置了对Wine图形化的支持、各种Wine工具、自制的Wine程序打包器和运行库安装工具等。</p>
|
||||
<p>它同时还内置了基于VirtualBox制作的、专供小白使用的Windows虚拟机安装工具,可以做到只需下载系统镜像并点击安装即可,无需考虑虚拟机的安装、创建、分区等操作。</p>
|
||||
<pre>
|
||||
@@ -2454,9 +2465,9 @@ Deepin 官网:<a href="https://www.deepin.org">https://www.deepin.org</a>
|
||||
Deepin 论坛:<a href="https://bbs.deepin.org">https://bbs.deepin.org</a>
|
||||
gfdgd xi:<a href="https://gfdgd-xi.github.io">https://gfdgd-xi.github.io</a>
|
||||
<hr>
|
||||
<h1>©2020~{time.strftime("%Y")} By gfdgd xi、为什么您不喜欢熊出没和阿布呢</h1>'''
|
||||
<h1>©2020~{time.strftime("%Y")} By gfdgd xi</h1>'''
|
||||
title = "Wine 运行器 {}".format(version)
|
||||
#<h1>©2020~{time.strftime("%Y")} <a href="https://gitee.com/gfdgd-xi">By gfdgd xi、为什么您不喜欢熊出没和阿布呢</h1>'''
|
||||
#<h1>©2020~{time.strftime("%Y")} <a href="https://gitee.com/gfdgd-xi">By gfdgd xi</h1>'''
|
||||
updateThings = "{} 更新内容:\n{}\n更新时间:{}".format(version, updateThingsString, updateTime, time.strftime("%Y"))
|
||||
try:
|
||||
threading.Thread(target=requests.get, args=[parse.unquote(base64.b64decode("aHR0cDovLzEyMC4yNS4xNTMuMTQ0L3NwYXJrLWRlZXBpbi13aW5lLXJ1bm5lci9vcGVuL0luc3RhbGwucGhw").decode("utf-8")) + "?Version=" + version]).start()
|
||||
@@ -2620,7 +2631,7 @@ mainLayout.addWidget(returnText, 0, 1, 2, 1)
|
||||
|
||||
# 版权
|
||||
copy = QtWidgets.QLabel(f"""\n程序版本:{version},<b>提示:Wine 无法保证可以运行所有的 Windows 程序,如果想要运行更多 Windows 程序,可以考虑虚拟机和双系统</b><br>
|
||||
©2020~{time.strftime("%Y")} gfdgd xi、为什么您不喜欢熊出没和阿布呢""")
|
||||
©2020~{time.strftime("%Y")} gfdgd xi""")
|
||||
mainLayout.addWidget(copy, 2, 0, 1, 1)
|
||||
|
||||
# 程序运行
|
||||
@@ -2932,10 +2943,13 @@ def AddLib(install: QtWidgets.QAction, uninstall, menu, info):
|
||||
menu.addAction(uninstall)
|
||||
|
||||
if os.path.exists(f"{programPath}/InstallRuntime"):
|
||||
installLib = menu.addMenu(transla.transe("U", "运行库(&R)"))
|
||||
installLib = menu.addMenu(transla.transe("U", "应用运行库(&R)"))
|
||||
howtouseQemuUser = QtWidgets.QAction(transla.transe("U", "Qemu User 使用教程(配合运行库实现在非 X86 架构运行 X86 Wine)"))
|
||||
howtouseQemuUser.triggered.connect(lambda: webbrowser.open_new_tab("https://gitee.com/gfdgd-xi/deep-wine-runner/wikis/%E4%BD%BF%E7%94%A8%E5%B8%AE%E5%8A%A9/%E9%9D%9EX86%E6%9E%B6%E6%9E%84PC/%E4%BD%BF%E7%94%A8Qemu%20User%E8%BF%90%E8%A1%8CWine%EF%BC%88%E6%94%AF%E6%8C%81%E5%85%A8%E6%9E%B6%E6%9E%84%EF%BC%89"))
|
||||
installLib.addAction(howtouseQemuUser)
|
||||
installQemuMenu = installLib.addMenu(transla.transe("U", "安装 Qemu User"))
|
||||
installQemu = QtWidgets.QAction("安装 Qemu User")
|
||||
removeQemu = QtWidgets.QAction("卸载 Qemu User")
|
||||
installQemu = QtWidgets.QAction(transla.transe("U", "安装 Qemu User"))
|
||||
removeQemu = QtWidgets.QAction(transla.transe("U", "卸载 Qemu User"))
|
||||
installQemuMenu.addAction(installQemu)
|
||||
installQemuMenu.addAction(removeQemu)
|
||||
installQemu.triggered.connect(lambda: OpenTerminal(f"bash '{programPath}/InstallQemuUser.sh'"))
|
||||
|
||||
Reference in New Issue
Block a user