[cli] Show download url for PyInstaller build updates

This commit is contained in:
derrod 2021-12-03 12:47:07 +01:00
parent c33f9a0084
commit a8e35e9f3b

View file

@ -2117,6 +2117,14 @@ def main():
if not is_windows_mac_or_pyi():
print('If you installed legendary via a package manager it may '
'take some time for the update to become available.')
elif 'downloads' in update_info:
dl_platform = 'windows'
if sys_platform == 'darwin':
dl_platform = 'macos'
elif sys_platform == 'linux':
dl_platform = 'linux'
print(f'\n- Download URL: {update_info["downloads"][dl_platform]}')
cli.core.exit()
ql.stop()