diff --git a/Model/__init__.py b/Model/__init__.py
index 61f0d50..7f043be 100644
--- a/Model/__init__.py
+++ b/Model/__init__.py
@@ -15,17 +15,17 @@ terminalList = [
"gnome-terminal"
]
terminalEnd = {
- f"{programPath}/launch.sh\" \"deepin-terminal": ["-e", 0],
+ f"{programPath}/../launch.sh\" \"deepin-terminal": ["-e", 0],
"mate-terminal": ["-e", 1],
"gnome-terminal": ["--", 0]
}
for i in terminalList:
if not os.system(f"which {i}"):
if i == "deepin-terminal":
- i = f"{programPath}/launch.sh\" \"deepin-terminal"
+ i = f"{programPath}/../launch.sh\" \"deepin-terminal"
terminal = i
break
if terminal == "":
print("无法识别到以下的任意一个终端")
print(" ".join(terminalList))
- exit()
\ No newline at end of file
+ exit()
diff --git a/Model/__pycache__/__init__.cpython-37.pyc b/Model/__pycache__/__init__.cpython-37.pyc
index 647b21f..3a4bb90 100644
Binary files a/Model/__pycache__/__init__.cpython-37.pyc and b/Model/__pycache__/__init__.cpython-37.pyc differ
diff --git a/deb/DEBIAN/control b/deb/DEBIAN/control
index 5fe8ee9..60df885 100755
--- a/deb/DEBIAN/control
+++ b/deb/DEBIAN/control
@@ -1,5 +1,5 @@
Package: spark-deepin-wine-runner
-Version: 2.1.0-1
+Version: 2.1.0-2
Maintainer: gfdgd xi <3025613752@qq.com>, 为什么您不喜欢熊出没和阿布呢
Homepage: https://gitee.com/gfdgd-xi/deep-wine-runner
Architecture: all
diff --git a/deb/DEBIAN/postinst b/deb/DEBIAN/postinst
index 096cfe3..b0946d6 100755
--- a/deb/DEBIAN/postinst
+++ b/deb/DEBIAN/postinst
@@ -23,4 +23,4 @@ fi
# 设置目录权限,让用户可读可写,方便后续删除组件
chmod 777 -R /opt/apps/deepin-wine-runner
# 向服务器返回安装数加1(不显示内容且忽略错误)
-curl https://304626p927.goho.co/spark-deepin-wine-runner/Install.php?Version=2.1.0-1 -s > /dev/null | true
+curl https://304626p927.goho.co/spark-deepin-wine-runner/Install.php?Version=2.1.0-2 -s > /dev/null | true
diff --git a/deb/opt/apps/deepin-wine-runner/Model/__init__.py b/deb/opt/apps/deepin-wine-runner/Model/__init__.py
index 5373bf0..7f043be 100644
--- a/deb/opt/apps/deepin-wine-runner/Model/__init__.py
+++ b/deb/opt/apps/deepin-wine-runner/Model/__init__.py
@@ -10,22 +10,22 @@ programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
# 优先为深度终端
terminal = ""
terminalList = [
- "deepin-terminal1",
- "mate-terminal1",
+ "deepin-terminal",
+ "mate-terminal",
"gnome-terminal"
]
terminalEnd = {
- f"{programPath}/launch.sh\" \"deepin-terminal": ["-e", 0],
+ f"{programPath}/../launch.sh\" \"deepin-terminal": ["-e", 0],
"mate-terminal": ["-e", 1],
"gnome-terminal": ["--", 0]
}
for i in terminalList:
if not os.system(f"which {i}"):
if i == "deepin-terminal":
- i = f"{programPath}/launch.sh\" \"deepin-terminal"
+ i = f"{programPath}/../launch.sh\" \"deepin-terminal"
terminal = i
break
if terminal == "":
print("无法识别到以下的任意一个终端")
print(" ".join(terminalList))
- exit()
\ No newline at end of file
+ exit()
diff --git a/deb/opt/apps/deepin-wine-runner/Model/__pycache__/__init__.cpython-37.pyc b/deb/opt/apps/deepin-wine-runner/Model/__pycache__/__init__.cpython-37.pyc
index 647b21f..3a4bb90 100644
Binary files a/deb/opt/apps/deepin-wine-runner/Model/__pycache__/__init__.cpython-37.pyc and b/deb/opt/apps/deepin-wine-runner/Model/__pycache__/__init__.cpython-37.pyc differ
diff --git a/deb/opt/apps/deepin-wine-runner/deepin-wine-runner b/deb/opt/apps/deepin-wine-runner/deepin-wine-runner
index c88d8b5..dbf272b 100755
--- a/deb/opt/apps/deepin-wine-runner/deepin-wine-runner
+++ b/deb/opt/apps/deepin-wine-runner/deepin-wine-runner
@@ -17,6 +17,7 @@ import json
import base64
import shutil
import hashlib
+import platform
import requests
import threading
import traceback
@@ -27,6 +28,19 @@ import PyQt5.QtGui as QtGui
import PyQt5.QtCore as QtCore
import PyQt5.QtWidgets as QtWidgets
from Model import *
+
+def PythonLower():
+ app = QtWidgets.QApplication(sys.argv)
+ QtWidgets.QMessageBox.critical(None, "错误", "Python 至少需要 3.6 及以上版本,目前版本:" + platform.python_version() + "")
+ sys.exit(1)
+
+# Python 版本检测,因为 f-string 格式化要至少 Python 3.6 及以上的版本,所以需要检测
+# 判断主版本号
+if sys.version_info[0] > 3:
+ PythonLower()
+if sys.version_info[1] < 6:
+ PythonLower()
+
###################
# 程序所需事件
###################
@@ -1374,7 +1388,9 @@ exe路径\' 参数 \'
千万不要中断后不删除源的情况下 apt upgrade !!!中断后只需重新打开脚本输入 repair 或者随意安装一个 Wine(会自动执行恢复操作)即可
以及此脚本安装的 Wine 无法保证 100% 能使用,以及副作用是会提示
N: 鉴于仓库 'https://community-packages.deepin.com/beige beige InRelease' 不支持 'i386' 体系结构,跳过配置文件 'main/binary-i386/Packages' 的获取。
'''
-updateThingsString = '''
N: 鉴于仓库 'https://community-packages.deepin.com/beige beige InRelease' 不支持 'i386' 体系结构,跳过配置文件 'main/binary-i386/Packages' 的获取。
'''
-updateThingsString = '''