Script to create the installer zips

This commit is contained in:
cmdr2 2022-10-29 23:40:03 +05:30
parent c49d9c2611
commit 4b27d8821d
4 changed files with 32 additions and 6 deletions

View File

@ -1,5 +0,0 @@
**Important:** These instructions are for the developers of this project, not for users! The users should use the pre-created zip files for installation.
Just distribute the `install.bat` or `install.sh` file.
Running that file will download the invokeAI repository into the same folder as the script, and install the required dependencies.

View File

@ -0,0 +1,20 @@
#!/bin/bash
# make the installer zip for linux and mac
rm -rf invokeAI
mkdir -p invokeAI
cp install.sh invokeAI
cp readme.txt invokeAI
zip -r invokeAI-linux.zip invokeAI
zip -r invokeAI-mac.zip invokeAI
# make the installer zip for windows
rm -rf invokeAI
mkdir -p invokeAI
cp install.bat invokeAI
cp readme.txt invokeAI
zip -r invokeAI-windows.zip invokeAI
echo "The installer zips are ready to be distributed.."

11
installer/readme.txt Normal file
View File

@ -0,0 +1,11 @@
InvokeAI
Project homepage: https://github.com/invoke-ai/InvokeAI
Installation on Windows:
Please double-click the 'install.bat' file (while keeping it inside the invokeAI folder).
Installation on Linux and Mac:
Please open the terminal, and run './install.sh' (while keeping it inside the invokeAI folder).
After installation, please run the 'invoke.bat' file (on Windows) or 'invoke.sh' file (on Linux/Mac) to start InvokeAI.

View File

@ -22,7 +22,7 @@ if [ "$0" != "bash" ]; then
3 ) printf "\nDeveloper Console:\n"; file_name=$(basename "${BASH_SOURCE[0]}"); bash --init-file "$file_name";;
* ) echo "Invalid selection"; exit;;
esac
else
else # in developer console
which python
python --version
fi