测试并完成windwos环境打包,这次真的测试,保证可以运行了

This commit is contained in:
2026-02-05 15:25:59 +08:00
parent 0c66c7d6f6
commit 1f3b0ed365
7 changed files with 72 additions and 63 deletions

18
windows/command/main.py Normal file
View File

@@ -0,0 +1,18 @@
import sys, subprocess
# 设定
if len(sys.argv) == 1:
# 如果什么都没输入就输出
subprocess.run("help.exe", check=True)
if len(sys.argv) > 1:
command = sys.argv[1]
if command == "help":
subprocess.run("help.exe", check=True)
elif command == "jm":
subprocess.run("Download.exe", check=True)
elif command == "version":
subprocess.run("version.exe", check=True)
else:
print(f"未知的命令: {command}")