Skip to content

The only downloader you need. 下载器的集大成者。

fix(build): 修正 deploy 输出路径与 Nuitka 产物名一致

XiaoYouChRa44a1ac04c4b
diff --git a/scripts/deploy.py b/scripts/deploy.py
index cc64f2a6..35788d4d 100644
--- a/scripts/deploy.py
+++ b/scripts/deploy.py
@@ -170,9 +170,9 @@ def copyPacks() -> None:
raise RuntimeError("No feature packs were found to copy.")
if sys.platform == "darwin":
- targetRoot = Path("dist") / "ghost_downloader.app" / "Contents" / "MacOS" / "features"
+ targetRoot = Path("dist") / "Ghost-Downloader-3.app" / "Contents" / "MacOS" / "features"
else:
- targetRoot = Path("dist") / "ghost_downloader.dist" / "features"
+ targetRoot = Path("dist") / "Ghost-Downloader-3.dist" / "features"
if not targetRoot.parent.exists():
raise FileNotFoundError(f"dist directory does not exist: {targetRoot.parent}")
@@ -188,7 +188,7 @@ def copyPacks() -> None:
def patchInfoPlist() -> None:
- appBundle = Path("dist") / "ghost_downloader.app"
+ appBundle = Path("dist") / "Ghost-Downloader-3.app"
plistPath = appBundle / "Contents" / "Info.plist"
resourcesDir = appBundle / "Contents" / "Resources"
resourcesDir.mkdir(parents=True, exist_ok=True)