feat: 将工具更名为 VideosDownTools,并完善黄豆登录与清单
This commit is contained in:
+3
-3
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user