1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-14 00:18:31 +00:00

[update] still identify darwin_legacy_exe

Authored by: bashonly
This commit is contained in:
bashonly 2025-08-11 15:18:29 -05:00
parent aa0d28531a
commit 580bb60b87
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -64,7 +64,9 @@ def _get_variant_and_executable_path():
# We know it's a PyInstaller bundle, but is it "onedir" or "onefile"?
suffix = 'dir' if sys._MEIPASS == os.path.dirname(path) else 'exe'
if sys.platform == 'darwin':
return f'darwin_{suffix}', path
# darwin_legacy_exe is no longer supported, but still identify it to block updates
machine = '_legacy' if version_tuple(platform.mac_ver()[0]) < (10, 15) else ''
return f'darwin{machine}_{suffix}', path
machine = f'_{platform.machine().lower()}'
is_64bits = sys.maxsize > 2**32