10 Commits

Author SHA1 Message Date
1f3b0ed365 测试并完成windwos环境打包,这次真的测试,保证可以运行了 2026-02-05 15:25:59 +08:00
0c66c7d6f6 测试并完成windwos环境打包 2026-02-05 08:36:03 +08:00
5e5caf4341 添加__init__.py,标记为包 2026-02-05 01:33:18 +08:00
ca39c99bc7 revert 34af68b2fe
revert 添加 web/index.html
2026-02-04 11:41:53 +00:00
34af68b2fe 添加 web/index.html 2026-02-04 11:25:25 +00:00
2d781b9151 修改原本程序结构,新增命令逻辑 2026-02-04 10:37:51 +08:00
a11a5f0510 删除 .gitignore 2025-11-25 04:37:15 +00:00
SkimrMe
1399481493 Update README.md 2025-11-25 07:47:31 +08:00
SkimrMe
c88ad2423f Create index.html 2025-11-25 07:28:47 +08:00
501e6af46a new file .gitignore 2025-11-22 01:18:59 +08:00
7 changed files with 83 additions and 2 deletions

6
.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
db/**
**/venv/**
**/dist/**
**/build/**
*.spec
**/jm_/**

View File

@@ -1,6 +1,7 @@
# jm_download-_python
# jm_download-_python [docs](https://skimrme.github.io/jm_download_python/)
jm_download _python
# 项目思路来源于[JMComic-Crawler-Python](https://github.com/hect0x7/JMComic-Crawler-Python)
其实是就是套壳,哈哈哈哈

51
windows/build.py Normal file
View File

@@ -0,0 +1,51 @@
#打包脚本
import subprocess, os, sys
# 建立venv虚拟环境
print("建立venv虚拟环境")
subprocess.run("python -m venv venv", shell=True)
# 安装requirements.txt中的库
print("安装requirements.txt中的库")
subprocess.run("venv\\Scripts\\pip.exe install -r ..\\requirements.txt", shell=True)
# 列出pip安装的库
print("列出pip安装的库")
subprocess.run("venv\\Scripts\\pip.exe list", shell=True)
# pyinstaller打包程序
print("pyinstaller打包中")
print("打包main.py")
subprocess.run("venv\\Scripts\\pyinstaller.exe --onefile command\\main.py", shell=True)
print("打包help.py")
subprocess.run("venv\\Scripts\\pyinstaller.exe --onefile command\\help.py", shell=True)
print("打包Download.py")
subprocess.run("venv\\Scripts\\pyinstaller.exe --onefile command\\Download.py", shell=True)
print("打包version.py")
subprocess.run("venv\\Scripts\\pyinstaller.exe --onefile command\\version.py", shell=True)
# 清理build和*.spec文件
print("清理build和*.spec文件")
subprocess.run("RMDIR build /s /q", shell=True)
print("正在清理*.spec文件")
subprocess.run("DEL main.spec version.spec Download.spec help.spec", shell=True)
# 重命名dist为jm_
print("重命名dist为jm_")
dir_path = os.path.dirname(os.path.abspath(__file__))
print("当前路径: " , f"{dir_path}")
pass
os.rename(f"{dir_path}\\dist", "jm_")
# 进入打包后产物文件夹
print("进入打包后产物文件夹")
os.chdir("jm_")
# 测试程序
print("测试程序")
subprocess.run("main.exe", shell=True)
subprocess.run("version.exe", shell=True)
subprocess.run("help.exe", shell=True)
print("大功告成~感谢您的使用")

View File

@@ -1,6 +1,7 @@
import jmcomic as jm
import os, sys
print(f'Input jmcomic Car_ID')
print(f'请输入 jmcomic 车号')
car_id = input()

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

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

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}")

View File

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