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:
parent
aa0d28531a
commit
580bb60b87
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user