新增命令与帮助

This commit is contained in:
2023-01-04 13:35:31 +08:00
parent d46c83f51b
commit 9cf0c16697
12 changed files with 62 additions and 31 deletions

View File

@@ -128,7 +128,8 @@ class Command():
"installvb",
"installother",
"decompressionbottle",
"programforum"
"programforum",
"installmsi"
]
def __init__(self, commandString: str) -> None:
@@ -435,6 +436,10 @@ class Command():
def ProgramForum(self):
webbrowser.open_new_tab("https://gfdgdxi.flarum.cloud/")
def InstallMSI(self):
self.command = ["bat", "msiexec", "/i", self.command[1]]
return self.Bat()
# 可以运行的命令的映射关系
# 可以被使用的命令的映射
commandList = {
@@ -479,7 +484,8 @@ class Command():
"installvb": InstallVB,
"installother": InstallOther,
"decompressionbottle": DecompressionBottle,
"programforum": ProgramForum
"programforum": ProgramForum,
"installmsi": InstallMSI
}
# 参数数列表
@@ -526,7 +532,8 @@ class Command():
"installvb": [1],
"installother": [1],
"decompressionbottle": [2],
"programforum": [0]
"programforum": [0],
"installmsi": [1]
}
windowsUnrun = [
"createbotton",