fix bugs in launcher script installation

- launcher scripts are installed *before* the configure script runs,
  so that if something goes wrong in the configure script, the user
  can run invoke.{sh,bat} and get the option to re-run configure
- fixed typo in invoke.sh which misspelled name of invokeai-configure
This commit is contained in:
Lincoln Stein 2023-02-01 19:14:07 -05:00
parent 6d966313b9
commit 3996ee843c
2 changed files with 3 additions and 3 deletions

View File

@ -164,12 +164,12 @@ class Installer:
optional_modules,
find_links,
)
# run through the configuration flow
self.instance.configure()
# install the launch/update scripts into the runtime directory
self.instance.install_user_scripts()
# run through the configuration flow
self.instance.configure()
class InvokeAiInstance:
"""

View File

@ -59,7 +59,7 @@ if [ "$0" != "bash" ]; then
bash --init-file "$file_name"
;;
6)
exec invokeai-config --root ${INVOKEAI_ROOT}
exec invokeai-configure --root ${INVOKEAI_ROOT}
;;
7)
exec invokeai --help