mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Use pyinstaller check rather than OS name only
This commit is contained in:
parent
b12798e6b0
commit
e8a3a3ec8d
|
@ -22,6 +22,7 @@ from legendary.models.exceptions import InvalidCredentialsError
|
||||||
from legendary.models.game import SaveGameStatus, VerifyResult
|
from legendary.models.game import SaveGameStatus, VerifyResult
|
||||||
from legendary.utils.cli import get_boolean_choice, sdl_prompt
|
from legendary.utils.cli import get_boolean_choice, sdl_prompt
|
||||||
from legendary.utils.custom_parser import AliasedSubParsersAction
|
from legendary.utils.custom_parser import AliasedSubParsersAction
|
||||||
|
from legendary.utils.env import is_windows_or_pyi
|
||||||
from legendary.utils.lfs import validate_files
|
from legendary.utils.lfs import validate_files
|
||||||
from legendary.utils.selective_dl import get_sdl_appname
|
from legendary.utils.selective_dl import get_sdl_appname
|
||||||
from legendary.utils.wine_helpers import read_registry, get_shell_folders
|
from legendary.utils.wine_helpers import read_registry, get_shell_folders
|
||||||
|
@ -1480,7 +1481,7 @@ def main():
|
||||||
print(f'- Release summary:\n{update_info["summary"]}\n- Release URL: {update_info["gh_url"]}')
|
print(f'- Release summary:\n{update_info["summary"]}\n- Release URL: {update_info["gh_url"]}')
|
||||||
if update_info['critical']:
|
if update_info['critical']:
|
||||||
print('! This update is recommended as it fixes major issues.')
|
print('! This update is recommended as it fixes major issues.')
|
||||||
if os.name != 'nt':
|
if not is_windows_or_pyi():
|
||||||
print('If you installed legendary via a package manager it may '
|
print('If you installed legendary via a package manager it may '
|
||||||
'take some time for the update to become available.')
|
'take some time for the update to become available.')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue