diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-09-24 06:31:43 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 06:31:43 +0530 |
commit | 4c88ff87fc0e84659f7b6a7a88997eb6851125a0 (patch) | |
tree | 9368500645e99e08ea6acb87efa8ad6db714f33f /pyinst.py | |
parent | e27cc5d864f8b7be27357e5dd2d32493fd9e5829 (diff) |
[build] Improve release process (#880)
* Automate more of the release process by animelover1984, pukkandan - closes #823
* Fix sha256 by nihil-admirari - closes #385
* Bring back brew taps by nao20010128nao #865
* Provide `--onedir` zip for windows by pukkandan - Closes #1024, #661, #705 and #890
Authored by: pukkandan, animelover1984, nihil-admirari, nao20010128nao
Diffstat (limited to 'pyinst.py')
-rw-r--r-- | pyinst.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -15,9 +15,11 @@ import PyInstaller.__main__ arch = sys.argv[1] if len(sys.argv) > 1 else platform.architecture()[0][:2] assert arch in ('32', '64') -print('Building %sbit version' % arch) _x86 = '_x86' if arch == '32' else '' +opts = sys.argv[2:] or ['--onefile'] +print(f'Building {arch}bit version with options {opts}') + FILE_DESCRIPTION = 'yt-dlp%s' % (' (32 Bit)' if _x86 else '') # root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) @@ -72,11 +74,12 @@ excluded_modules = ['test', 'ytdlp_plugins', 'youtube-dl', 'youtube-dlc'] PyInstaller.__main__.run([ '--name=yt-dlp%s' % _x86, - '--onefile', '--icon=devscripts/logo.ico', *[f'--exclude-module={module}' for module in excluded_modules], *[f'--hidden-import={module}' for module in dependancies], '--upx-exclude=vcruntime140.dll', + '--noconfirm', + *opts, 'yt_dlp/__main__.py', ]) SetVersion('dist/yt-dlp%s.exe' % _x86, VERSION_FILE) |