feat: 将工具更名为 VideosDownTools,并完善黄豆登录与清单

This commit is contained in:
Nixevol
2026-10-25 01:58:29 +08:00
parent 7253217e18
commit 3c2105c786
27 changed files with 1349 additions and 237 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
DIST = ROOT / "dist"
CACHE = DIST / "cache"
STAGE_NAME = "RaptDrama-Download-Tools"
STAGE_NAME = "VideosDownTools"
PYTHON_VERSION = "3.13.15"
PYTHON_EMBED_URL = (
@@ -50,7 +50,7 @@ def download(url: str, dest: Path) -> None:
dest.parent.mkdir(parents=True, exist_ok=True)
temporary = dest.with_suffix(dest.suffix + ".part")
log(f"下载 {url}")
request = urllib.request.Request(url, headers={"User-Agent": "RaptDrama"})
request = urllib.request.Request(url, headers={"User-Agent": "VideosDownTools"})
try:
with urllib.request.urlopen(request, timeout=120) as response, temporary.open("wb") as handle:
total = int(response.headers.get("Content-Length") or 0)
@@ -91,7 +91,7 @@ def build_desktop() -> Path:
text=True,
)
target = Path(json.loads(meta)["target_directory"]) / "release"
name = "raptdrama.exe" if sys.platform == "win32" else "raptdrama"
name = "VideosDownTools.exe" if sys.platform == "win32" else "VideosDownTools"
exe = target / name
if not exe.is_file():
raise SystemExit(f"没有找到桌面程序 {exe}")