[update] cleanup

Authored by: bashonly
pull/13997/head
bashonly 3 days ago
parent 8a91d773f7
commit 433d9a5934
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

@ -71,13 +71,13 @@ 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'
system_platform = remove_end(sys.platform, '32')
if sys.platform == 'darwin':
if system_platform == 'darwin':
# 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
system_platform = remove_end(sys.platform, '32')
if system_platform == 'linux' and platform.libc_ver()[0] != 'glibc':
system_platform = 'musllinux'

Loading…
Cancel
Save