mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
remove choice to update from main and add a warning about tags & branches
This commit is contained in:
parent
357912285a
commit
500f3046a9
@ -54,13 +54,15 @@ def welcome(versions: dict):
|
|||||||
def text():
|
def text():
|
||||||
yield f"InvokeAI Version: [bold yellow]{__version__}"
|
yield f"InvokeAI Version: [bold yellow]{__version__}"
|
||||||
yield ""
|
yield ""
|
||||||
yield "This script will update InvokeAI to the latest release, or to a development version of your choice."
|
yield "This script will update InvokeAI to the latest release, or to the development version of your choice."
|
||||||
|
yield ""
|
||||||
|
yield "When updating to an arbitrary tag or branch, be aware that the front end may be mismatched to the backend,"
|
||||||
|
yield "making the web frontend unusable. Please downgrade to the latest release if this happens."
|
||||||
yield ""
|
yield ""
|
||||||
yield "[bold yellow]Options:"
|
yield "[bold yellow]Options:"
|
||||||
yield f"""[1] Update to the latest official release ([italic]{versions[0]['tag_name']}[/italic])
|
yield f"""[1] Update to the latest official release ([italic]{versions[0]['tag_name']}[/italic])
|
||||||
[2] Update to the bleeding-edge development version ([italic]main[/italic])
|
[2] Manually enter the [bold]tag name[/bold] for the version you wish to update to
|
||||||
[3] Manually enter the [bold]tag name[/bold] for the version you wish to update to
|
[3] Manually enter the [bold]branch name[/bold] for the version you wish to update to"""
|
||||||
[4] Manually enter the [bold]branch name[/bold] for the version you wish to update to"""
|
|
||||||
|
|
||||||
console.rule()
|
console.rule()
|
||||||
print(
|
print(
|
||||||
@ -104,11 +106,11 @@ def main():
|
|||||||
if choice == "1":
|
if choice == "1":
|
||||||
release = versions[0]["tag_name"]
|
release = versions[0]["tag_name"]
|
||||||
elif choice == "2":
|
elif choice == "2":
|
||||||
release = "main"
|
while not tag:
|
||||||
|
tag = Prompt.ask("Enter an InvokeAI tag name")
|
||||||
elif choice == "3":
|
elif choice == "3":
|
||||||
tag = Prompt.ask("Enter an InvokeAI tag name")
|
while not branch:
|
||||||
elif choice == "4":
|
branch = Prompt.ask("Enter an InvokeAI branch name")
|
||||||
branch = Prompt.ask("Enter an InvokeAI branch name")
|
|
||||||
|
|
||||||
extras = get_extras()
|
extras = get_extras()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user