mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(installer): show latest versions in the welcome panel
This commit is contained in:
parent
6a8a3b50bc
commit
97c1545cca
@ -36,7 +36,7 @@ else:
|
|||||||
console = Console(style=Style(color="grey74", bgcolor="grey19"))
|
console = Console(style=Style(color="grey74", bgcolor="grey19"))
|
||||||
|
|
||||||
|
|
||||||
def welcome():
|
def welcome(available_releases: tuple | None = None) -> None:
|
||||||
@group()
|
@group()
|
||||||
def text():
|
def text():
|
||||||
if (platform_specific := _platform_specific_help()) is not None:
|
if (platform_specific := _platform_specific_help()) is not None:
|
||||||
@ -46,6 +46,16 @@ def welcome():
|
|||||||
"Some of the installation steps take a long time to run. Please be patient. If the script appears to hang for more than 10 minutes, please interrupt with [i]Control-C[/] and retry.",
|
"Some of the installation steps take a long time to run. Please be patient. If the script appears to hang for more than 10 minutes, please interrupt with [i]Control-C[/] and retry.",
|
||||||
justify="center",
|
justify="center",
|
||||||
)
|
)
|
||||||
|
if available_releases is not None:
|
||||||
|
latest_stable = available_releases[0][0]
|
||||||
|
last_pre = available_releases[1][0]
|
||||||
|
yield ""
|
||||||
|
yield Text.from_markup(
|
||||||
|
f"[red3]🠶[/] Latest stable release (recommended): [b bright_white]{latest_stable}", justify="center"
|
||||||
|
)
|
||||||
|
yield Text.from_markup(
|
||||||
|
f"[red3]🠶[/] Last published pre-release version: [b bright_white]{last_pre}", justify="center"
|
||||||
|
)
|
||||||
|
|
||||||
console.rule()
|
console.rule()
|
||||||
print(
|
print(
|
||||||
|
Loading…
Reference in New Issue
Block a user