From 580bb60b8734316b8b16dbf0cc89738b9f9f8dfa Mon Sep 17 00:00:00 2001 From: bashonly Date: Mon, 11 Aug 2025 15:18:29 -0500 Subject: [PATCH] [update] still identify `darwin_legacy_exe` Authored by: bashonly --- yt_dlp/update.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yt_dlp/update.py b/yt_dlp/update.py index 5d38baecc..6d66256e3 100644 --- a/yt_dlp/update.py +++ b/yt_dlp/update.py @@ -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