From 2bd02b94c517a7a16a654f6e8d3a1a357c530046 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Thu, 29 Sep 2022 21:18:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E7=8E=AF=E5=A2=83=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoConfig.py | 4 ++-- AutoShell/command/bat | 13 +++++++++++++ AutoShell/command/changeversion | 13 +++++++++++++ AutoShell/command/createbotton | 13 +++++++++++++ AutoShell/command/disbledopengl | 13 +++++++++++++ AutoShell/command/download | 13 +++++++++++++ AutoShell/command/enabledopengl | 13 +++++++++++++ AutoShell/command/error | 13 +++++++++++++ AutoShell/command/info | 13 +++++++++++++ AutoShell/command/installdll | 4 ++-- AutoShell/command/installdxvk | 13 +++++++++++++ AutoShell/command/installfont | 4 ++-- AutoShell/command/installgecko | 4 ++-- AutoShell/command/installmono | 4 ++-- AutoShell/command/installmsxml | 13 +++++++++++++ AutoShell/command/installnet | 13 +++++++++++++ AutoShell/command/installsparkcorefont | 4 ++-- AutoShell/command/installvcpp | 13 +++++++++++++ AutoShell/command/pause | 13 +++++++++++++ AutoShell/command/reg | 13 +++++++++++++ AutoShell/command/stopdll | 13 +++++++++++++ AutoShell/command/thank | 13 +++++++++++++ AutoShell/command/version | 13 +++++++++++++ AutoShell/command/warning | 13 +++++++++++++ AutoShell/command/winecfg | 13 +++++++++++++ AutoShell/command/winver | 13 +++++++++++++ AutoShell/main.py | 9 +++++++-- ConfigLanguareRunner.py | 9 +++++---- .../ConfigLanguareRunner.cpython-37.pyc | Bin 13195 -> 13156 bytes __pycache__/InstallMsxml.cpython-37.pyc | Bin 3273 -> 3298 bytes .../InstallVisualCPlusPlus.cpython-37.pyc | Bin 4594 -> 4752 bytes 31 files changed, 284 insertions(+), 18 deletions(-) create mode 100755 AutoShell/command/bat create mode 100755 AutoShell/command/changeversion create mode 100755 AutoShell/command/createbotton create mode 100755 AutoShell/command/disbledopengl create mode 100755 AutoShell/command/download create mode 100755 AutoShell/command/enabledopengl create mode 100755 AutoShell/command/error create mode 100755 AutoShell/command/info create mode 100755 AutoShell/command/installdxvk create mode 100755 AutoShell/command/installmsxml create mode 100755 AutoShell/command/installnet create mode 100755 AutoShell/command/installvcpp create mode 100755 AutoShell/command/pause create mode 100755 AutoShell/command/reg create mode 100755 AutoShell/command/stopdll create mode 100755 AutoShell/command/thank create mode 100755 AutoShell/command/version create mode 100755 AutoShell/command/warning create mode 100755 AutoShell/command/winecfg create mode 100755 AutoShell/command/winver mode change 100644 => 100755 AutoShell/main.py diff --git a/AutoConfig.py b/AutoConfig.py index 3402676..c24487e 100755 --- a/AutoConfig.py +++ b/AutoConfig.py @@ -61,7 +61,7 @@ class Connect: QtWidgets.QMessageBox.critical(window, "错误", "无法获取配置文件") return # 执行脚本 - OpenTerminal(f"env WINE='{wine}' WINEPREFIX='{wineprefix}' '{programPath}/ConfigLanguareRunner.py' '/tmp/wine-runner-auto-config.wsh' --system") + OpenTerminal(f"env WINE='{wine}' WINEPREFIX='{wineprefix}' '{programPath}/AutoShell/main.py' '/tmp/wine-runner-auto-config.wsh'") #process = QtCore.QProcess() #process.start(f"{programPath}/launch.sh", ["deepin-terminal", "-e", "env", f"WINE={wine}", f"WINEPREFIX={wineprefix}", f"{programPath}/ConfigLanguareRunner.py", "/tmp/wine-runner-auto-config.wsh", "--system"]) #process.waitForFinished() @@ -71,7 +71,7 @@ class Connect: if path[0] == "": return # 执行脚本 - OpenTerminal(f"env WINE='{wine}' WINEPREFIX='{wineprefix}' '{programPath}/ConfigLanguareRunner.py' '{path[0]}' --system") + OpenTerminal(f"env WINE='{wine}' WINEPREFIX='{wineprefix}' '{programPath}/AutoShell/main.py' '{path[0]}'") #process = QtCore.QProcess() #process.start(f"{programPath}/launch.sh", ["deepin-terminal", "-e", "env", f"WINE={wine}", f"WINEPREFIX={wineprefix}", f"{programPath}/ConfigLanguareRunner.py", path[0], "--system"]) #process.waitForFinished() diff --git a/AutoShell/command/bat b/AutoShell/command/bat new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/bat @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/changeversion b/AutoShell/command/changeversion new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/changeversion @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/createbotton b/AutoShell/command/createbotton new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/createbotton @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/disbledopengl b/AutoShell/command/disbledopengl new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/disbledopengl @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/download b/AutoShell/command/download new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/download @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/enabledopengl b/AutoShell/command/enabledopengl new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/enabledopengl @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/error b/AutoShell/command/error new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/error @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/info b/AutoShell/command/info new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/info @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/installdll b/AutoShell/command/installdll index eb687c0..1bf2fba 100755 --- a/AutoShell/command/installdll +++ b/AutoShell/command/installdll @@ -8,6 +8,6 @@ import ConfigLanguareRunner # 符号转移 argv = [] for i in sys.argv[1:]: - argv = i.replace(" ", "\\ ") -com = ConfigLanguareRunner.Command(f"installdll {''.join(argv)}") + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/installdxvk b/AutoShell/command/installdxvk new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/installdxvk @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/installfont b/AutoShell/command/installfont index f3c3459..1bf2fba 100755 --- a/AutoShell/command/installfont +++ b/AutoShell/command/installfont @@ -8,6 +8,6 @@ import ConfigLanguareRunner # 符号转移 argv = [] for i in sys.argv[1:]: - argv = i.replace(" ", "\\ ") -com = ConfigLanguareRunner.Command(f"installfont {''.join(argv)}") + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/installgecko b/AutoShell/command/installgecko index 3f72ecc..1bf2fba 100755 --- a/AutoShell/command/installgecko +++ b/AutoShell/command/installgecko @@ -8,6 +8,6 @@ import ConfigLanguareRunner # 符号转移 argv = [] for i in sys.argv[1:]: - argv = i.replace(" ", "\\ ") -com = ConfigLanguareRunner.Command(f"installgecko {''.join(argv)}") + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/installmono b/AutoShell/command/installmono index cbd37e2..1bf2fba 100755 --- a/AutoShell/command/installmono +++ b/AutoShell/command/installmono @@ -8,6 +8,6 @@ import ConfigLanguareRunner # 符号转移 argv = [] for i in sys.argv[1:]: - argv = i.replace(" ", "\\ ") -com = ConfigLanguareRunner.Command(f"installmono {''.join(argv)}") + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/installmsxml b/AutoShell/command/installmsxml new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/installmsxml @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/installnet b/AutoShell/command/installnet new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/installnet @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/installsparkcorefont b/AutoShell/command/installsparkcorefont index 4831931..1bf2fba 100755 --- a/AutoShell/command/installsparkcorefont +++ b/AutoShell/command/installsparkcorefont @@ -8,6 +8,6 @@ import ConfigLanguareRunner # 符号转移 argv = [] for i in sys.argv[1:]: - argv = i.replace(" ", "\\ ") -com = ConfigLanguareRunner.Command(f"installsparkcorefont {''.join(argv)}") + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/installvcpp b/AutoShell/command/installvcpp new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/installvcpp @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/pause b/AutoShell/command/pause new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/pause @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/reg b/AutoShell/command/reg new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/reg @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/stopdll b/AutoShell/command/stopdll new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/stopdll @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/thank b/AutoShell/command/thank new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/thank @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/version b/AutoShell/command/version new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/version @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/warning b/AutoShell/command/warning new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/warning @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/winecfg b/AutoShell/command/winecfg new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/winecfg @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/command/winver b/AutoShell/command/winver new file mode 100755 index 0000000..1bf2fba --- /dev/null +++ b/AutoShell/command/winver @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +# 加入路径 +import os +import sys +programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string +sys.path.append(f"{programPath}/../../") +import ConfigLanguareRunner +# 符号转移 +argv = [] +for i in sys.argv[1:]: + argv.append(i.replace(" ", "\\ ")) +com = ConfigLanguareRunner.Command(f"{os.path.basename(sys.argv[0])} {' '.join(argv)}") +com.Run(com.GetCommandList(), os.getenv("WINEPREFIX"), os.getenv("WINE")) \ No newline at end of file diff --git a/AutoShell/main.py b/AutoShell/main.py old mode 100644 new mode 100755 index 67fa435..7826010 --- a/AutoShell/main.py +++ b/AutoShell/main.py @@ -57,10 +57,15 @@ if os.getenv("WINEPREFIX") != None: commandEnv = "" for i in programEnv: commandEnv += f"{i[0]}=\"{i[1]}\" " -commandEnv += f"PATH=\"$PATH:{programPath}/command\" " +commandEnv += f"PATH=\"{programPath}/command:$PATH\" " if len(sys.argv) - optionAll < 2: print("Wine 运行器自动配置文件解析器交互环境(基于 Bash)") print(f"版本:{version}") print(f"©2020~{time.strftime('%Y')} gfdgd xi、为什么您不喜欢熊出没和阿布呢") print("--------------------------------------------------------------") - os.system(f"{commandEnv} bash") \ No newline at end of file + os.system(f"{commandEnv} bash ") + exit() +command = "" +for i in sys.argv[1:]: + command += f"\"{i}\" " +os.system(f"{commandEnv} bash {command}") \ No newline at end of file diff --git a/ConfigLanguareRunner.py b/ConfigLanguareRunner.py index 534c04c..4517606 100755 --- a/ConfigLanguareRunner.py +++ b/ConfigLanguareRunner.py @@ -30,7 +30,8 @@ for i in information["Thank"]: programEnv = [ ["($WINEPREFIX)", f"{os.path.expanduser('~')}/.wine"], ["($WINE)", "deepin-wine6-stable"], - ["($DANGER)", "0"], + #["($DANGER)", "0"], + ["($DANGER)", "1"], ["($HOME)", os.path.expanduser('~')], ["($PROGRAMPATH)", programPath], ["($VERSION)", version], @@ -39,7 +40,8 @@ programEnv = [ ["($COPYRIGHT)", f"©2020~{time.strftime('%Y')} gfdgd xi、为什么您不喜欢熊出没和阿布呢"], ["($?)", "0"], ["($PLATFORM)", platform.system()], - ["($DEBUG)", str(int("--debug" in sys.argv))] + ["($DEBUG)", "1"] + #["($DEBUG)", str(int("--debug" in sys.argv))] ] readOnlyEnv = [ "($DANGER)", @@ -259,7 +261,6 @@ class Command(): commandStr = command[0] + " " for i in command[1:]: commandStr += f"'{i}' " - print(commandStr) return os.system(commandStr) def Version(self): @@ -448,8 +449,8 @@ class Command(): if self.close: break +app = QtWidgets.QApplication(sys.argv) if __name__ == "__main__": - app = QtWidgets.QApplication(sys.argv) optionAll = 0 if "--debug" in sys.argv: optionAll += 1 diff --git a/__pycache__/ConfigLanguareRunner.cpython-37.pyc b/__pycache__/ConfigLanguareRunner.cpython-37.pyc index f8ca55e2d941abe604324e2e9cb1137bca341bb6..ee49095134f1fca67dd46e32b471f897368f1141 100644 GIT binary patch delta 3268 zcmai$Z%kX)6~N!MpN%np!ykhI8w1AnBNzyOk|>lc5J;AZB!(oTwH7?Xy*MvCKfBkD z1l)GsLe^F4nx?sGt2U~Hzii*yYBXK6PLnoif3y!(+Yg)eG)BUChea4 zY#>{*8u{mQ?>+b2bI(2JUY<|gTM19q)VL-78ND&KTt6*Ie}qQ)Q^SR0{G0perSQKB z?I|1XAo5moQR0#h*QIQ!>bM8j;(ELfH{eFxggv+o`>`+Oj33wK|a zaQCJy?j;plZ3JCzFQRw{@!_6T+f5sNA4_pR4nqH`^CqGi@#Ee@&==b2`)&c(5f2V~ zCEWX%R8}C;Rws@W5k{+aKJm?Rn``!#G(khz(fB}U@HW?wN*V!JWD^m8tAxX=5_brb zF5I_?ki>uYllt4z8@A1Y)odZQttQ-BM7JgEeZyW->WAO;Y0{0On<(BxdhmeQ*+5Jp zUed$+f+V=r%fF$bR9@N(l5o>2743*G{AAmLM8caAk~ShF0&a=%K^{3}o*PoO`ihb; zrflsmaP*wY*kmAoqwoSvDwa8hCC9pA1y0$Ct)NXU(-XZtgU*H$~mn~Kepb3|LAV{9_m=yoL% zs;(M|M2hvhI?=)HS=Yx1HL$4rQ#8h!t5WC?d!}k0Y1#Fezlk2+B zK^CgJgT~qK>uBf@H&0_6ai_kPULurMLXQCCtQdQJ+o-oAK4X2~H``9~UeifQI&+24 z3!rkILqSxm!(vS?$MpJ@)$g<6hHEvTtk|enWtRQ4p#{Cge%FA9#-ZO~R-MvwMpDyG zWORd`E8C)TAkFWYy2z(CIu?1)JGVSt?0bz*bu55R9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JOUU+{arnC~N9Kxq-R-J@=q@q_m;Z?()PRp^)j@wM(* zof^3Z6%sP3viM@6PZ)dNgC_8op5-~2`=n%KD&=@hd1L-)Bvh>zsRbtZJi_jw@TN*t z>10l$Nv@}aJm*d~e#h@}oVXfO6YNpObIFVv5pM*(3+5gR2HIp?$-Ej%udt{kE^h~lG#(C`55w~F zVl({0x@;)&${)flR&XnwjcHd))`f+|WST83=xJ~kR`s_OA94O=1P8+72u~m^AjA;j z2>5F71VR!ag^)&25i$r_1>($Q*TL%I7)!o}fJMpk;uizW-QPfQ13{krndY z>XA6S6=@?kM0?~Q{79LL6o4CoQiU*JPUWrPaPE3eW6LFSKqgq!G(UZIGAe#E_yP%tg#*Xd2lO&>qRJJ3 zsA(yeQMtTD7mn*@ug_`219RGZk|vmz)8CUC{D!||8~ zwHr0Yve{^LCX0jP>2%2gZbB~U55h^@`4xa@O+2%_3`S2whlv_tz#;6;ax?=-!)DB% i6om)QHxLVSe@pq_1>ZK(Y!udm?IxRz*hT2zvHt=SUEmJ@ diff --git a/__pycache__/InstallMsxml.cpython-37.pyc b/__pycache__/InstallMsxml.cpython-37.pyc index 68c0bc679abe6b35355a93f79f33a6533b0b26fc..9cf0dda9f644e21f4769afd358984b1d49a0d927 100644 GIT binary patch delta 863 zcma)*zi-n(6vyxEB+V~7P4mNXS|GHP7E%%@NHDN~n6eOwp>RqoLEcGKoW`mHDnUpY z3}<>#7?=?=V&dJ!sZ?OVvhLlF_df6Yp3k4nZ>Dx%(~<KL$!bI|~72@#DSqVf+c{DUS(H@FY(_`hyA@=x-t{#nX_nl#%Le z!6K&}&5Ai6xei&EQi66Vv^i<1p9u)=OHY?V-lF|4A_@v7fuf~^tNd)`{6vBwB3n2q zg(x$$Y_&W9Sv5V-m`2CCykAUiMIh))iGW_+3;JZiT>36U$Q4n zwWUOrjmoR4H;L}jhh8?eY2179+H?abq)ijoZut=?C4~eE1;N6En6i+q)JiLr-Vslb4TckkW1``q`=_7CferQg@}9Kk2^P2Ib5 zq~EK^eS=9+hRKlvQcSyQOl|FGXLX=$5m$OdSeDJOEaczGphMwp#?G->C_2(m_8TzA zXgBYu{s*SRd_XBdTT1PMurw;f1pP%G8Bi!YwD*{&U?W$d7Ix8O&IL97dUlD51W&rAlq;##y6QUsp8 z<|*oDRtS)T#QcQFDFd9X4i{05fxQ!p9FvhGnwZXNMU?mjmu%B5h?%Wm^1T{?9B$WbtzA;{FB~gdFa38t_yfX(C*Q+b4zo)cs$w$1S-n zX>zSvd)=sopOkHSH!P}a^2X5uc?!jHM{rDZ>he?ubo`n@F6?RjnzzMp+uPqH2F p8EfqxbP~nib)T?=?kCE=`~2lWqV9D(ug4PQsdvcyBwWvre*=Lg(BJ?7 diff --git a/__pycache__/InstallVisualCPlusPlus.cpython-37.pyc b/__pycache__/InstallVisualCPlusPlus.cpython-37.pyc index ae271623f91e78e3ea647987d9b0ce12bdde73ac..5dc520b8dec8aa94464f72d57ed31c7c1c73b169 100644 GIT binary patch delta 1037 zcmZ`&%}*0S6rb7MmeSIeQrd1orIe3?AFZN-f+AmvpM=;%WD`GmlWGe^wxETBJuKcl zRQHHYcK-$v4_u7#zu-ztI2aEmdiKrk)~M*t&i>}jyx)7jd9(AatJ;&A@cX?4pI2Yg z3*RGz>~W+1wBTS2dujAdDp`@%qf9VdOfuXcm^9yDQpGbziq9$G4MdP~0=U2p4LK1! z&~dVU5hoJEY!8&*qXB<5HM_`f<87(k~bqXVA z$niPHu{^+9fv5IpR1>Diy@V2B0T$UJaGrTs1k;l^*&;QOdspeoMrDqa@2_{WC=6@V zh?zu@nG7Rbqq;LouokjL6&VjiwhshTUa-k847*~OQ09A74JO;E3m958W_bc*4p*&s zf*N2!jaMcB7g3CCiK%ckg0%;}uQ&^%)=_6UV{0{ORZ!m|?UL|TBFGiDhg8;zb@i3wNb*jk#E+4d(f+29gViH#2Zi&vrZ`n0bvHomsHoPEL;7c&dXOG}T6kV&WU)r-Dv z+O@6wW+aOu=zGDBv38YT<6W_|UfPxN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