From a26c231193d9d69eef2310a02dfafaeea0dc8ba1 Mon Sep 17 00:00:00 2001 From: bashonly Date: Mon, 11 Aug 2025 15:20:18 -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 ee3df8790e..dd948cd521 100644 --- a/yt_dlp/update.py +++ b/yt_dlp/update.py @@ -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