mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2026-08-09 22:04:17 +08:00
Compare commits
2
Commits
f9e9a4eb72
...
10db5c042d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10db5c042d | ||
|
|
18ce8a080f |
@@ -14,12 +14,14 @@ programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
|||||||
terminal = ""
|
terminal = ""
|
||||||
terminalList = [
|
terminalList = [
|
||||||
"deepin-terminal",
|
"deepin-terminal",
|
||||||
|
"deepin-terminal-gtk",
|
||||||
"mate-terminal",
|
"mate-terminal",
|
||||||
"gnome-terminal",
|
"gnome-terminal",
|
||||||
"xfce4-terminal"
|
"xfce4-terminal"
|
||||||
]
|
]
|
||||||
terminalEnd = {
|
terminalEnd = {
|
||||||
f"{programPath}/../launch.sh\" \"deepin-terminal": ["-e", 0],
|
f"{programPath}/../launch.sh\" \"deepin-terminal": ["-e", 0],
|
||||||
|
f"{programPath}/../launch.sh\" \"deepin-terminal-gtk": ["-e", 0],
|
||||||
"mate-terminal": ["-e", 1],
|
"mate-terminal": ["-e", 1],
|
||||||
"gnome-terminal": ["--", 0],
|
"gnome-terminal": ["--", 0],
|
||||||
"xfce4-terminal": ["-e", 1]
|
"xfce4-terminal": ["-e", 1]
|
||||||
@@ -28,6 +30,8 @@ for i in terminalList:
|
|||||||
if not os.system(f"which {i}"):
|
if not os.system(f"which {i}"):
|
||||||
if i == "deepin-terminal":
|
if i == "deepin-terminal":
|
||||||
i = f"{programPath}/../launch.sh\" \"deepin-terminal"
|
i = f"{programPath}/../launch.sh\" \"deepin-terminal"
|
||||||
|
if i == "deepin-terminal-gtk":
|
||||||
|
i = f"{programPath}/../launch.sh\" \"deepin-terminal-gtk"
|
||||||
terminal = i
|
terminal = i
|
||||||
break
|
break
|
||||||
if terminal == "":
|
if terminal == "":
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ Certainty: possible
|
|||||||
Check: binaries
|
Check: binaries
|
||||||
Type: binary, udeb
|
Type: binary, udeb
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Depends: python3, python3-pil, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar | unrar-free , unzip, python3-requests, python3-pyqt5, python3-psutil, xfce4-terminal | deepin-terminal | mate-terminal | gnome-terminal, python3-dbus, python3-pip, p7zip-full | p7zip-legacy, sudo, python3-pyperclip, bubblewrap, zenity, tree, dpkg, fakeroot
|
Depends: python3, python3-pil, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar | unrar-free , unzip, python3-requests, python3-pyqt5, python3-psutil, deepin-terminal-gtk | xfce4-terminal | deepin-terminal | mate-terminal | gnome-terminal, python3-dbus, python3-pip, p7zip-full | p7zip-legacy, sudo, python3-pyperclip, bubblewrap, zenity, tree, dpkg, fakeroot
|
||||||
Recommends: winbind, wimtools, python3-pyqt5.qtwebengine, binfmt-support, libc6:i386, libc6:armhf, libwine, qemu-system, qemu-full, alien, spark-deepin-wine-runner-qemu-system-extra, deepin-wine8-stable | spark-wine | spark-wine9 | spark-wine9-wow | spark-wine8 | spark-wine8-wow | spark-wine7-devel | deepin-wine6-stable | deepin-wine5-stable | deepin-wine5 | deepin-wine | wine
|
Recommends: winbind, wimtools, python3-pyqt5.qtwebengine, binfmt-support, libc6:i386, libc6:armhf, libwine, qemu-system, qemu-full, alien, spark-deepin-wine-runner-qemu-system-extra, deepin-wine8-stable | spark-wine | spark-wine9 | spark-wine9-wow | spark-wine8 | spark-wine8-wow | spark-wine7-devel | deepin-wine6-stable | deepin-wine5-stable | deepin-wine5 | deepin-wine | wine
|
||||||
Section: utils
|
Section: utils
|
||||||
Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52
|
Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52
|
||||||
|
|||||||
@@ -142,6 +142,10 @@ def runexebutton(self):
|
|||||||
class QT:
|
class QT:
|
||||||
message = None
|
message = None
|
||||||
def ShowWineReturn(things):
|
def ShowWineReturn(things):
|
||||||
|
global unUseLnk
|
||||||
|
unUseLnk = True
|
||||||
|
# 不显示超链接
|
||||||
|
#returnText.setStyleSheet(returnText.styleSheet() + "a {color: white; text-decoration: none;}")
|
||||||
returnText.insertPlainText(things)
|
returnText.insertPlainText(things)
|
||||||
|
|
||||||
def ShowHistory(temp):
|
def ShowHistory(temp):
|
||||||
@@ -2718,8 +2722,11 @@ returnText = QtWidgets.QTextBrowser()
|
|||||||
getUpdate = GetUpdateToShow()
|
getUpdate = GetUpdateToShow()
|
||||||
getUpdate.signal.connect(returnText.setHtml)
|
getUpdate.signal.connect(returnText.setHtml)
|
||||||
getUpdate.start()
|
getUpdate.start()
|
||||||
|
unUseLnk = False
|
||||||
def ReturnTextOpenUrl(url):
|
def ReturnTextOpenUrl(url):
|
||||||
print(url)
|
print(url)
|
||||||
|
if unUseLnk:
|
||||||
|
return
|
||||||
if url.url() == "http://update.gfdgdxi.top/update-wine-runner":
|
if url.url() == "http://update.gfdgdxi.top/update-wine-runner":
|
||||||
UpdateWindow.ShowWindow()
|
UpdateWindow.ShowWindow()
|
||||||
elif url.url() == "http://update.gfdgdxi.top/information-wine-runner":
|
elif url.url() == "http://update.gfdgdxi.top/information-wine-runner":
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import sys
|
|||||||
import json
|
import json
|
||||||
import traceback
|
import traceback
|
||||||
import requests
|
import requests
|
||||||
|
import webbrowser
|
||||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||||
sys.path.append(f"{programPath}/../")
|
sys.path.append(f"{programPath}/../")
|
||||||
from Model import *
|
from Model import *
|
||||||
@@ -68,6 +69,8 @@ class Ui_MainWindow(object):
|
|||||||
self.deleteZip.setObjectName("deleteZip")
|
self.deleteZip.setObjectName("deleteZip")
|
||||||
self.horizontalLayout.addWidget(self.deleteZip)
|
self.horizontalLayout.addWidget(self.deleteZip)
|
||||||
self.addOtherWine = QtWidgets.QPushButton(self.centralWidget)
|
self.addOtherWine = QtWidgets.QPushButton(self.centralWidget)
|
||||||
|
self.downloadWineFromCloudDisk = QtWidgets.QPushButton(self.centralWidget)
|
||||||
|
self.horizontalLayout.addWidget(self.downloadWineFromCloudDisk)
|
||||||
self.horizontalLayout.addWidget(self.addOtherWine)
|
self.horizontalLayout.addWidget(self.addOtherWine)
|
||||||
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
||||||
self.horizontalLayout.addItem(spacerItem2)
|
self.horizontalLayout.addItem(spacerItem2)
|
||||||
@@ -110,6 +113,7 @@ class Ui_MainWindow(object):
|
|||||||
self.unzip.setText(_translate("MainWindow", "不解压Wine资源文件"))
|
self.unzip.setText(_translate("MainWindow", "不解压Wine资源文件"))
|
||||||
self.deleteZip.setText(_translate("MainWindow", "删除下载的资源包,只解压保留(两个选项都选相互抵消)"))
|
self.deleteZip.setText(_translate("MainWindow", "删除下载的资源包,只解压保留(两个选项都选相互抵消)"))
|
||||||
self.addOtherWine.setText(_translate("MainWindow", "导入自己的Wine"))
|
self.addOtherWine.setText(_translate("MainWindow", "导入自己的Wine"))
|
||||||
|
self.downloadWineFromCloudDisk.setText(_translate("MainWindow", "从网盘下载 Wine"))
|
||||||
|
|
||||||
def ReadLocalInformation():
|
def ReadLocalInformation():
|
||||||
try:
|
try:
|
||||||
@@ -357,6 +361,10 @@ def on_delButton_clicked():
|
|||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
QtWidgets.QMessageBox.critical(window, "错误", traceback.format_exc())
|
QtWidgets.QMessageBox.critical(window, "错误", traceback.format_exc())
|
||||||
|
|
||||||
|
def on_downloadWineFromCloudDisk_clicked():
|
||||||
|
QtWidgets.QMessageBox.information(window, "提示", "即将在浏览器打开下载页面\n访问密码为 2061")
|
||||||
|
webbrowser.open_new_tab("http://ctfile.gfdgdxi.top/d/31540479-61624693-080e74?p=2061")
|
||||||
|
|
||||||
# 获取当前语言
|
# 获取当前语言
|
||||||
def get_now_lang()->"获取当前语言":
|
def get_now_lang()->"获取当前语言":
|
||||||
return os.getenv('LANG')
|
return os.getenv('LANG')
|
||||||
@@ -403,6 +411,7 @@ if __name__ == "__main__":
|
|||||||
# 连接信号
|
# 连接信号
|
||||||
ui.addButton.clicked.connect(on_addButton_clicked)
|
ui.addButton.clicked.connect(on_addButton_clicked)
|
||||||
ui.delButton.clicked.connect(on_delButton_clicked)
|
ui.delButton.clicked.connect(on_delButton_clicked)
|
||||||
|
ui.downloadWineFromCloudDisk.clicked.connect(on_downloadWineFromCloudDisk_clicked)
|
||||||
ui.addOtherWine.clicked.connect(InstallOtherWine)
|
ui.addOtherWine.clicked.connect(InstallOtherWine)
|
||||||
ui.changeSourcesGroup.triggered.connect(ChangeSources)
|
ui.changeSourcesGroup.triggered.connect(ChangeSources)
|
||||||
## 加载内容
|
## 加载内容
|
||||||
|
|||||||
Reference in New Issue
Block a user