]> jfr.im git - yt-dlp.git/commitdiff
Fix bug in 6d916fe709a38e8c4c69b73843acf170b5165931 (#4219)
authorStefan Lobbenmeier <redacted>
Wed, 29 Jun 2022 00:09:32 +0000 (17:09 -0700)
committerGitHub <redacted>
Wed, 29 Jun 2022 00:09:32 +0000 (05:39 +0530)
Update only to legacy version on old MacOS

Authored by: StefanLobbenmeier

yt_dlp/update.py

index 41c11677c7c234440092a5d3e14ee418de4efc8b..c4214433798511ca17f224284d3a6ee2cd2f039e 100644 (file)
@@ -25,6 +25,8 @@ def _get_variant_and_executable_path():
             return 'py2exe', path
         if sys._MEIPASS == os.path.dirname(path):
             return f'{sys.platform}_dir', path
+        if sys.platform == 'darwin' and version_tuple(platform.mac_ver()[0]) < (10, 15):
+            return 'darwin_legacy_exe', path
         return f'{sys.platform}_exe', path
 
     path = os.path.dirname(__file__)
@@ -45,6 +47,7 @@ def detect_variant():
     'py2exe': '_min.exe',
     'win32_exe': '.exe',
     'darwin_exe': '_macos',
+    'darwin_legacy_exe': '_macos_legacy',
     'linux_exe': '_linux',
 }