diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-06-21 22:53:17 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-06-21 22:56:36 +0530 |
commit | e36d50c5dd35973c090f87df05d4e94963e8036c (patch) | |
tree | be74700890c89fde704fd725ff5c43816e0ee3e3 /pyinst.py | |
parent | ff0f78e1fef082b7702f3ce783381d3609415649 (diff) | |
download | hypervideo-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.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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', ]) |