mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
测试
This commit is contained in:
parent
74e82aca00
commit
66ace92775
@ -3060,6 +3060,9 @@ installLib.addAction(installRunnerLib)
|
|||||||
installLib.addAction(removeRunnerLib)
|
installLib.addAction(removeRunnerLib)
|
||||||
diyRunnerLib = installLib.addMenu("定制运行库")
|
diyRunnerLib = installLib.addMenu("定制运行库")
|
||||||
diyRunnerLib.setDisabled(True)
|
diyRunnerLib.setDisabled(True)
|
||||||
|
diyRunnerLibRemoveTips = QtWidgets.QAction("移除库")
|
||||||
|
diyRunnerLibRemoveTips.setDisabled(True)
|
||||||
|
diyRunnerLib.addAction(diyRunnerLibRemoveTips)
|
||||||
installRunnerLib.triggered.connect(lambda: threading.Thread(target=OpenTerminal, args=[f"bash '{programPath}/WineLib/install.sh'"]).start())
|
installRunnerLib.triggered.connect(lambda: threading.Thread(target=OpenTerminal, args=[f"bash '{programPath}/WineLib/install.sh'"]).start())
|
||||||
removeRunnerLib.triggered.connect(lambda: threading.Thread(target=OpenTerminal, args=[f"bash '{programPath}/WineLib/remove.sh'"]).start())
|
removeRunnerLib.triggered.connect(lambda: threading.Thread(target=OpenTerminal, args=[f"bash '{programPath}/WineLib/remove.sh'"]).start())
|
||||||
if os.path.exists(f"{programPath}/WineLib/usr"):
|
if os.path.exists(f"{programPath}/WineLib/usr"):
|
||||||
@ -3068,6 +3071,10 @@ if os.path.exists(f"{programPath}/WineLib/usr"):
|
|||||||
diyRunnerLib.setEnabled(True)
|
diyRunnerLib.setEnabled(True)
|
||||||
statusRunnerLib.setText("当前状态:已安装")
|
statusRunnerLib.setText("当前状态:已安装")
|
||||||
libPathList = []
|
libPathList = []
|
||||||
|
def AddLib(number, name):
|
||||||
|
action = QtWidgets.QAction(f"{name}")
|
||||||
|
action.triggered.connect(lambda: print(int(str(number))))
|
||||||
|
diyRunnerLib.addAction(action)
|
||||||
for libPath in [f"{programPath}/WineLib/usr/lib", f"{programPath}/WineLib/usr/lib64"]:
|
for libPath in [f"{programPath}/WineLib/usr/lib", f"{programPath}/WineLib/usr/lib64"]:
|
||||||
for i in os.listdir(libPath):
|
for i in os.listdir(libPath):
|
||||||
if not os.path.isdir(f"{libPath}/{i}"):
|
if not os.path.isdir(f"{libPath}/{i}"):
|
||||||
@ -3077,10 +3084,12 @@ if os.path.exists(f"{programPath}/WineLib/usr"):
|
|||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
libPathList.append(f"{libPath}/{i}")
|
libPathList.append(f"{libPath}/{i}")
|
||||||
|
AddLib(len(libPathList), f"{i}")
|
||||||
else:
|
else:
|
||||||
if not os.path.exists(f"{libPath}/{i}/libc.so.6"):
|
if not os.path.exists(f"{libPath}/{i}/libc.so.6"):
|
||||||
continue
|
continue
|
||||||
libPathList.append(f"{libPath}/{i}/")
|
libPathList.append(f"{libPath}/{i}/")
|
||||||
|
AddLib(len(libPathList), f"{i}/")
|
||||||
print(libPathList)
|
print(libPathList)
|
||||||
if os.path.exists(f"{programPath}/InstallRuntime"):
|
if os.path.exists(f"{programPath}/InstallRuntime"):
|
||||||
installLib.addSeparator()
|
installLib.addSeparator()
|
||||||
|
Loading…
Reference in New Issue
Block a user