Skip to content

Commit 42a2bad

Browse files
psychedelicioushipsterusername
authored andcommitted
fix(installer): remove deleted scripts from launcher
These scripts no longer exist and need to be removed from the launcher: - invokeai-ti - invokeai-merge - invokeai-model-install - invokeai-configure
1 parent ba2fd87 commit 42a2bad

File tree

2 files changed

+18
-73
lines changed

2 files changed

+18
-73
lines changed

installer/templates/invoke.bat.in

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,17 @@ set INVOKEAI_ROOT=.
99
:start
1010
echo Desired action:
1111
echo 1. Generate images with the browser-based interface
12-
echo 2. Run textual inversion training
13-
echo 3. Merge models (diffusers type only)
14-
echo 4. Download and install models
15-
echo 5. Change InvokeAI startup options
16-
echo 6. Re-run the configure script to fix a broken install or to complete a major upgrade
17-
echo 7. Open the developer console
18-
echo 8. Update InvokeAI (DEPRECATED - please use the installer)
19-
echo 9. Run the InvokeAI image database maintenance script
20-
echo 10. Command-line help
12+
echo 2. Open the developer console
13+
echo 3. Update InvokeAI (DEPRECATED - please use the installer)
14+
echo 4. Run the InvokeAI image database maintenance script
15+
echo 5. Command-line help
2116
echo Q - Quit
2217
set /P choice="Please enter 1-10, Q: [1] "
2318
if not defined choice set choice=1
2419
IF /I "%choice%" == "1" (
2520
echo Starting the InvokeAI browser-based UI..
2621
python .venv\Scripts\invokeai-web.exe %*
2722
) ELSE IF /I "%choice%" == "2" (
28-
echo Starting textual inversion training..
29-
python .venv\Scripts\invokeai-ti.exe --gui
30-
) ELSE IF /I "%choice%" == "3" (
31-
echo Starting model merging script..
32-
python .venv\Scripts\invokeai-merge.exe --gui
33-
) ELSE IF /I "%choice%" == "4" (
34-
echo Running invokeai-model-install...
35-
python .venv\Scripts\invokeai-model-install.exe
36-
) ELSE IF /I "%choice%" == "5" (
37-
echo Running invokeai-configure...
38-
python .venv\Scripts\invokeai-configure.exe --skip-sd-weight --skip-support-models
39-
) ELSE IF /I "%choice%" == "6" (
40-
echo Running invokeai-configure...
41-
python .venv\Scripts\invokeai-configure.exe --yes --skip-sd-weight
42-
) ELSE IF /I "%choice%" == "7" (
4323
echo Developer Console
4424
echo Python command is:
4525
where python
@@ -51,15 +31,15 @@ IF /I "%choice%" == "1" (
5131
echo *************************
5232
echo *** Type `exit` to quit this shell and deactivate the Python virtual environment ***
5333
call cmd /k
54-
) ELSE IF /I "%choice%" == "8" (
34+
) ELSE IF /I "%choice%" == "3" (
5535
echo UPDATING FROM WITHIN THE APP IS BEING DEPRECATED.
5636
echo Please download the installer from https://github.com/invoke-ai/InvokeAI/releases/latest and run it to update your installation.
5737
timeout 4
5838
python -m invokeai.frontend.install.invokeai_update
59-
) ELSE IF /I "%choice%" == "9" (
39+
) ELSE IF /I "%choice%" == "4" (
6040
echo Running the db maintenance script...
6141
python .venv\Scripts\invokeai-db-maintenance.exe
62-
) ELSE IF /I "%choice%" == "10" (
42+
) ELSE IF /I "%choice%" == "5" (
6343
echo Displaying command line help...
6444
python .venv\Scripts\invokeai-web.exe --help %*
6545
pause

installer/templates/invoke.sh.in

Lines changed: 11 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -58,49 +58,24 @@ do_choice() {
5858
invokeai-web $PARAMS
5959
;;
6060
2)
61-
clear
62-
printf "Textual inversion training\n"
63-
invokeai-ti --gui $PARAMS
64-
;;
65-
3)
66-
clear
67-
printf "Merge models (diffusers type only)\n"
68-
invokeai-merge --gui $PARAMS
69-
;;
70-
4)
71-
clear
72-
printf "Download and install models\n"
73-
invokeai-model-install --root ${INVOKEAI_ROOT}
74-
;;
75-
5)
76-
clear
77-
printf "Change InvokeAI startup options\n"
78-
invokeai-configure --root ${INVOKEAI_ROOT} --skip-sd-weights --skip-support-models
79-
;;
80-
6)
81-
clear
82-
printf "Re-run the configure script to fix a broken install or to complete a major upgrade\n"
83-
invokeai-configure --root ${INVOKEAI_ROOT} --yes --default_only --skip-sd-weights
84-
;;
85-
7)
8661
clear
8762
printf "Open the developer console\n"
8863
file_name=$(basename "${BASH_SOURCE[0]}")
8964
bash --init-file "$file_name"
9065
;;
91-
8)
66+
3)
9267
clear
9368
printf "UPDATING FROM WITHIN THE APP IS BEING DEPRECATED\n"
9469
printf "Please download the installer from https://github.com/invoke-ai/InvokeAI/releases/latest and run it to update your installation.\n"
9570
sleep 4
9671
python -m invokeai.frontend.install.invokeai_update
9772
;;
98-
9)
73+
4)
9974
clear
10075
printf "Running the db maintenance script\n"
10176
invokeai-db-maintenance --root ${INVOKEAI_ROOT}
10277
;;
103-
10)
78+
5)
10479
clear
10580
printf "Command-line help\n"
10681
invokeai-web --help
@@ -118,15 +93,10 @@ do_choice() {
11893
do_dialog() {
11994
options=(
12095
1 "Generate images with a browser-based interface"
121-
2 "Textual inversion training"
122-
3 "Merge models (diffusers type only)"
123-
4 "Download and install models"
124-
5 "Change InvokeAI startup options"
125-
6 "Re-run the configure script to fix a broken install or to complete a major upgrade"
126-
7 "Open the developer console"
127-
8 "Update InvokeAI (DEPRECATED - please use the installer)"
128-
9 "Run the InvokeAI image database maintenance script"
129-
10 "Command-line help"
96+
2 "Open the developer console"
97+
3 "Update InvokeAI (DEPRECATED - please use the installer)"
98+
4 "Run the InvokeAI image database maintenance script"
99+
5 "Command-line help"
130100
)
131101

132102
choice=$(dialog --clear \
@@ -151,15 +121,10 @@ do_line_input() {
151121
printf " ** For a more attractive experience, please install the 'dialog' utility using your package manager. **\n\n"
152122
printf "What would you like to do?\n"
153123
printf "1: Generate images using the browser-based interface\n"
154-
printf "2: Run textual inversion training\n"
155-
printf "3: Merge models (diffusers type only)\n"
156-
printf "4: Download and install models\n"
157-
printf "5: Change InvokeAI startup options\n"
158-
printf "6: Re-run the configure script to fix a broken install\n"
159-
printf "7: Open the developer console\n"
160-
printf "8: Update InvokeAI\n"
161-
printf "9: Run the InvokeAI image database maintenance script\n"
162-
printf "10: Command-line help\n"
124+
printf "2: Open the developer console\n"
125+
printf "3: Update InvokeAI\n"
126+
printf "4: Run the InvokeAI image database maintenance script\n"
127+
printf "5: Command-line help\n"
163128
printf "Q: Quit\n\n"
164129
read -p "Please enter 1-10, Q: [1] " yn
165130
choice=${yn:='1'}

0 commit comments

Comments
 (0)