Skip to content

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

feat(deploy): 添加 --onefile 参数支持

XiaoYouChR509cd21121ea
diff --git a/deploy.py b/deploy.py
index 4b7c1db7..73142390 100644
--- a/deploy.py
+++ b/deploy.py
@@ -24,6 +24,12 @@ if sys.platform == "win32":
'--output-dir=dist',
'Ghost-Downloader-3.py',
]
+
+ if "--onefile" in sys.argv:
+ args.pop(args.index("--standalone"))
+ args.insert(1, "--onefile")
+ args.insert(1, "--onefile-cache-mode=cached")
+
elif sys.platform == "darwin":
args = [
'python3 -m nuitka',
@@ -55,5 +61,5 @@ else:
'Ghost-Downloader-3.py',
]
-
+print(args)
os.system(' '.join(args))