From a8e35e9f3b2f21e51b0e76d1783ac2cc657ec156 Mon Sep 17 00:00:00 2001 From: derrod Date: Fri, 3 Dec 2021 12:47:07 +0100 Subject: [PATCH] [cli] Show download url for PyInstaller build updates --- legendary/cli.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/legendary/cli.py b/legendary/cli.py index 78e4f5a..e0047cc 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -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()