From f64fc2c8b76985c68e6ecba7872020e53d51a6fa Mon Sep 17 00:00:00 2001 From: Eugene Brodsky Date: Tue, 6 Feb 2024 11:43:05 -0500 Subject: [PATCH] feat(installer): add a deprecation message to the in-launcher updater --- installer/templates/invoke.bat.in | 9 +++++---- installer/templates/invoke.sh.in | 6 ++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/installer/templates/invoke.bat.in b/installer/templates/invoke.bat.in index ee6d56fc56..fb07280b6a 100644 --- a/installer/templates/invoke.bat.in +++ b/installer/templates/invoke.bat.in @@ -15,7 +15,7 @@ echo 4. Download and install models echo 5. Change InvokeAI startup options echo 6. Re-run the configure script to fix a broken install or to complete a major upgrade echo 7. Open the developer console -echo 8. Update InvokeAI +echo 8. Update InvokeAI (DEPRECATED - please use the installer) echo 9. Run the InvokeAI image database maintenance script echo 10. Command-line help echo Q - Quit @@ -52,8 +52,10 @@ IF /I "%choice%" == "1" ( echo *** Type `exit` to quit this shell and deactivate the Python virtual environment *** call cmd /k ) ELSE IF /I "%choice%" == "8" ( - echo Running invokeai-update... - python -m invokeai.frontend.install.invokeai_update + echo UPDATING FROM WITHIN THE APP IS BEING DEPRECATED. + echo Please download the installer from https://github.com/invoke-ai/InvokeAI/releases/latest and run it to update your installation. + timeout 4 + python -m invokeai.frontend.install.invokeai_update ) ELSE IF /I "%choice%" == "9" ( echo Running the db maintenance script... python .venv\Scripts\invokeai-db-maintenance.exe @@ -77,4 +79,3 @@ pause :ending exit /b - diff --git a/installer/templates/invoke.sh.in b/installer/templates/invoke.sh.in index 3230c9f442..a6bb88faec 100644 --- a/installer/templates/invoke.sh.in +++ b/installer/templates/invoke.sh.in @@ -90,7 +90,9 @@ do_choice() { ;; 8) clear - printf "Update InvokeAI\n" + printf "UPDATING FROM WITHIN THE APP IS BEING DEPRECATED\n" + printf "Please download the installer from https://github.com/invoke-ai/InvokeAI/releases/latest and run it to update your installation.\n" + sleep 4 python -m invokeai.frontend.install.invokeai_update ;; 9) @@ -122,7 +124,7 @@ do_dialog() { 5 "Change InvokeAI startup options" 6 "Re-run the configure script to fix a broken install or to complete a major upgrade" 7 "Open the developer console" - 8 "Update InvokeAI" + 8 "Update InvokeAI (DEPRECATED - please use the installer)" 9 "Run the InvokeAI image database maintenance script" 10 "Command-line help" )