[update] still identify `darwin_legacy_exe`

Authored by: bashonly
pull/13860/head
bashonly 1 week ago
parent e1e0ff84cb
commit a26c231193
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

@ -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…
Cancel
Save