feat(installer): add a deprecation message to the in-launcher updater

This commit is contained in:
Eugene Brodsky 2024-02-06 11:43:05 -05:00 committed by Kent Keirsey
parent 3d1b5c57ea
commit f64fc2c8b7
2 changed files with 9 additions and 6 deletions

View File

@ -15,7 +15,7 @@ echo 4. Download and install models
echo 5. Change InvokeAI startup options 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 6. Re-run the configure script to fix a broken install or to complete a major upgrade
echo 7. Open the developer console 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 9. Run the InvokeAI image database maintenance script
echo 10. Command-line help echo 10. Command-line help
echo Q - Quit echo Q - Quit
@ -52,8 +52,10 @@ IF /I "%choice%" == "1" (
echo *** Type `exit` to quit this shell and deactivate the Python virtual environment *** echo *** Type `exit` to quit this shell and deactivate the Python virtual environment ***
call cmd /k call cmd /k
) ELSE IF /I "%choice%" == "8" ( ) ELSE IF /I "%choice%" == "8" (
echo Running invokeai-update... echo UPDATING FROM WITHIN THE APP IS BEING DEPRECATED.
python -m invokeai.frontend.install.invokeai_update 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" ( ) ELSE IF /I "%choice%" == "9" (
echo Running the db maintenance script... echo Running the db maintenance script...
python .venv\Scripts\invokeai-db-maintenance.exe python .venv\Scripts\invokeai-db-maintenance.exe
@ -77,4 +79,3 @@ pause
:ending :ending
exit /b exit /b

View File

@ -90,7 +90,9 @@ do_choice() {
;; ;;
8) 8)
clear 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 python -m invokeai.frontend.install.invokeai_update
;; ;;
9) 9)
@ -122,7 +124,7 @@ do_dialog() {
5 "Change InvokeAI startup options" 5 "Change InvokeAI startup options"
6 "Re-run the configure script to fix a broken install or to complete a major upgrade" 6 "Re-run the configure script to fix a broken install or to complete a major upgrade"
7 "Open the developer console" 7 "Open the developer console"
8 "Update InvokeAI" 8 "Update InvokeAI (DEPRECATED - please use the installer)"
9 "Run the InvokeAI image database maintenance script" 9 "Run the InvokeAI image database maintenance script"
10 "Command-line help" 10 "Command-line help"
) )