mac完成打包,完全没问题了

This commit is contained in:
2026-02-08 16:18:34 +08:00
parent 78e2664230
commit 32f6a6ae91
5 changed files with 93 additions and 0 deletions

8
mac/command/Download.py Normal file
View File

@@ -0,0 +1,8 @@
import jmcomic as jm
import os, sys
print(f'请输入 jmcomic 车号')
car_id = input()
jm.download_album(car_id)

2
mac/command/help.py Normal file
View File

@@ -0,0 +1,2 @@
print("jm", "{:12}选择你需要下载的漫画".format(" "))
print("version", "{:7}查看当前版本".format(" "))

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

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

2
mac/command/version.py Normal file
View File

@@ -0,0 +1,2 @@
print("jm_download_python")
print("2026-02-04", "(v0.02)")