mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-13 16:08:29 +00:00
[update] still identify darwin_legacy_exe
Authored by: bashonly
This commit is contained in:
parent
e1e0ff84cb
commit
a26c231193
@ -64,7 +64,9 @@ def _get_variant_and_executable_path():
|
||||
if sys._MEIPASS == os.path.dirname(path):
|
||||
return f'{sys.platform}_dir', path
|
||||
if sys.platform == 'darwin':
|
||||
return 'darwin_exe', 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}_exe', path
|
||||
|
||||
machine = f'_{platform.machine().lower()}'
|
||||
is_64bits = sys.maxsize > 2**32
|
||||
|
Loading…
Reference in New Issue
Block a user