aboutsummaryrefslogtreecommitdiffstats
path: root/pyinst.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-06-21 22:53:17 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-06-21 22:56:36 +0530
commite36d50c5dd35973c090f87df05d4e94963e8036c (patch)
treebe74700890c89fde704fd725ff5c43816e0ee3e3 /pyinst.py
parentff0f78e1fef082b7702f3ce783381d3609415649 (diff)
downloadhypervideo-pre-e36d50c5dd35973c090f87df05d4e94963e8036c.tar.lz
hypervideo-pre-e36d50c5dd35973c090f87df05d4e94963e8036c.tar.xz
hypervideo-pre-e36d50c5dd35973c090f87df05d4e94963e8036c.zip
[websockets] Add `WebSocketFragmentFD` (#399)
Necessary for #392 Co-authored by: nao20010128nao, pukkandan
Diffstat (limited to 'pyinst.py')
-rw-r--r--pyinst.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pyinst.py b/pyinst.py
index 0d8ff73c3..eac97e52d 100644
--- a/pyinst.py
+++ b/pyinst.py
@@ -6,6 +6,7 @@ import sys
# import os
import platform
+from PyInstaller.utils.hooks import collect_submodules
from PyInstaller.utils.win32.versioninfo import (
VarStruct, VarFileInfo, StringStruct, StringTable,
StringFileInfo, FixedFileInfo, VSVersionInfo, SetVersion,
@@ -66,16 +67,15 @@ VERSION_FILE = VSVersionInfo(
]
)
+dependancies = ['Crypto', 'mutagen'] + collect_submodules('websockets')
+excluded_modules = ['test', 'ytdlp_plugins', 'youtube-dl', 'youtube-dlc']
+
PyInstaller.__main__.run([
'--name=yt-dlp%s' % _x86,
'--onefile',
'--icon=devscripts/cloud.ico',
- '--exclude-module=youtube_dl',
- '--exclude-module=youtube_dlc',
- '--exclude-module=test',
- '--exclude-module=ytdlp_plugins',
- '--hidden-import=mutagen',
- '--hidden-import=Crypto',
+ *[f'--exclude-module={module}' for module in excluded_modules],
+ *[f'--hidden-import={module}' for module in dependancies],
'--upx-exclude=vcruntime140.dll',
'yt_dlp/__main__.py',
])