diff --git a/installer/install.bat b/installer/install.bat index d1f6640808..33b6f6dc65 100644 --- a/installer/install.bat +++ b/installer/install.bat @@ -17,7 +17,7 @@ set PATH=c:\windows\system32 @rem Config set INSTALL_ENV_DIR=%cd%\installer_files\env @rem https://mamba.readthedocs.io/en/latest/installation.html -set MICROMAMBA_DOWNLOAD_URL=https://micro.mamba.pm/api/micromamba/win-64/latest +set MICROMAMBA_DOWNLOAD_URL=https://github.com/cmdr2/stable-diffusion-ui/releases/download/v1.1/micromamba.exe set RELEASE_URL=https://github.com/invoke-ai/InvokeAI set RELEASE_SOURCEBALL=/archive/refs/heads/release-candidate-2-1-3.tar.gz set PYTHON_BUILD_STANDALONE_URL=https://github.com/indygreg/python-build-standalone/releases/download @@ -36,15 +36,7 @@ if "%PACKAGES_TO_INSTALL%" NEQ "" ( @rem download micromamba echo ***** Downloading micromamba from %MICROMAMBA_DOWNLOAD_URL% to micromamba.exe ***** - call curl -L "%MICROMAMBA_DOWNLOAD_URL%" > micromamba.tbz2 - - set err_msg=----- micromamba source unpack failed ----- - tar -jxf micromamba.tbz2 - if %errorlevel% neq 0 goto err_exit - - move Library\bin\micromamba.exe micromamba.exe - rd /s /q Library info - del /q micromamba.tbz2 + call curl -L "%MICROMAMBA_DOWNLOAD_URL%" > micromamba.exe @rem test the mamba binary echo ***** Micromamba version: ***** diff --git a/installer/invoke.bat b/installer/invoke.bat index 58ff1ed98e..c00975fd3b 100644 --- a/installer/invoke.bat +++ b/installer/invoke.bat @@ -16,7 +16,9 @@ IF /I "%restore%" == "1" ( .venv\Scripts\python scripts\invoke.py --web ) ELSE IF /I "%restore%" == "3" ( echo Developer Console - .venv\Scripts\python + call where python + call python --version + cmd /k ) ELSE ( echo Invalid selection diff --git a/source_installer/create_installers.sh b/source_installer/create_installers.sh index a925526703..46f75d25da 100755 --- a/source_installer/create_installers.sh +++ b/source_installer/create_installers.sh @@ -16,6 +16,7 @@ rm -rf invokeAI mkdir -p invokeAI cp install.bat invokeAI cp readme.txt invokeAI +cp WinLongPathsEnabled.reg invokeAI zip -r invokeAI-src-installer-windows.zip invokeAI diff --git a/source_installer/readme.txt b/source_installer/readme.txt index a5b8537a39..8bfc0c9ce5 100644 --- a/source_installer/readme.txt +++ b/source_installer/readme.txt @@ -3,9 +3,14 @@ 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). + You may need to enable Windows Long Paths to install InvokeAI. If you're not + sure what this is, you almost certainly need to do this. Simply double-click the + "WinLongPathsEnabled.reg" file located in this directory, and approve the Windows + warnings. Note that you will need to have admin privileges in order to do this. + + Then 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. \ No newline at end of file +After installation, please run the 'invoke.bat' file (on Windows) or 'invoke.sh' file (on Linux/Mac) to start InvokeAI.