diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-28 22:16:23 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-28 22:18:03 +0530 |
commit | e1e1ea54ae8c92b9a796ee103eb20a6b949e437f (patch) | |
tree | 792dd3e63924589ca290bf87f5c5ec1f77963809 /pyinst.py | |
parent | 492272fed630e3cd4e7649afc03f4084e58df174 (diff) | |
download | hypervideo-pre-e1e1ea54ae8c92b9a796ee103eb20a6b949e437f.tar.lz hypervideo-pre-e1e1ea54ae8c92b9a796ee103eb20a6b949e437f.tar.xz hypervideo-pre-e1e1ea54ae8c92b9a796ee103eb20a6b949e437f.zip |
[build] Fix `--onedir` on macOS
Closes #3584
Diffstat (limited to 'pyinst.py')
-rw-r--r-- | pyinst.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -33,9 +33,9 @@ def main(): if not onedir and '-F' not in opts and '--onefile' not in opts: opts.append('--onefile') - suffix = '_macos' if OS_NAME == 'Darwin' else '_x86' if ARCH == '32' else '' - final_file = 'dist/%syt-dlp%s%s' % ( - 'yt-dlp/' if onedir else '', suffix, '.exe' if OS_NAME == 'Windows' else '') + name = 'yt-dlp%s' % ('_macos' if OS_NAME == 'Darwin' else '_x86' if ARCH == '32' else '') + final_file = ''.join(( + 'dist/', f'{name}/' if onedir else '', name, '.exe' if OS_NAME == 'Windows' else '')) print(f'Building yt-dlp v{version} {ARCH}bit for {OS_NAME} with options {opts}') print('Remember to update the version using "devscripts/update-version.py"') @@ -45,7 +45,7 @@ def main(): print(f'Destination: {final_file}\n') opts = [ - f'--name=yt-dlp{suffix}', + f'--name={name}', '--icon=devscripts/logo.ico', '--upx-exclude=vcruntime140.dll', '--noconfirm', |