From 2dd5c0696d2b624ec54ec29dfa674eba2b04c3b9 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Wed, 26 Oct 2022 15:38:49 +0530 Subject: [PATCH] Repo URL constant --- installer/install.bat | 3 ++- installer/install.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/installer/install.bat b/installer/install.bat index 45e0e24e2d..8ba2cae2c3 100644 --- a/installer/install.bat +++ b/installer/install.bat @@ -16,6 +16,7 @@ echo. set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba set INSTALL_ENV_DIR=%cd%\installer_files\env set MICROMAMBA_DOWNLOAD_URL=https://github.com/cmdr2/stable-diffusion-ui/releases/download/v1.1/micromamba.exe +set REPO_URL=https://github.com/cmdr2/InvokeAI.git @rem Change the download URL to an InvokeAI repo's release URL @rem figure out whether git and conda needs to be installed @@ -65,7 +66,7 @@ set PATH=%INSTALL_ENV_DIR%;%INSTALL_ENV_DIR%\Library\bin;%INSTALL_ENV_DIR%\Scrip if not exist ".git" ( call git config --global init.defaultBranch main call git init - call git remote add origin https://github.com/cmdr2/InvokeAI.git + call git remote add origin %REPO_URL% call git fetch call git checkout origin/main -ft ) diff --git a/installer/install.sh b/installer/install.sh index 48f816a427..83957d2a9d 100755 --- a/installer/install.sh +++ b/installer/install.sh @@ -33,6 +33,7 @@ if [ "$OS_NAME" == "linux" ] && [ "$OS_ARCH" == "arm64" ]; then OS_ARCH="aarch64 export MAMBA_ROOT_PREFIX="$(pwd)/installer_files/mamba" INSTALL_ENV_DIR="$(pwd)/installer_files/env" MICROMAMBA_DOWNLOAD_URL="https://micro.mamba.pm/api/micromamba/${OS_NAME}-${OS_ARCH}/latest" +REPO_URL="https://github.com/cmdr2/InvokeAI.git" # figure out whether git and conda needs to be installed if [ -e "$INSTALL_ENV_DIR" ]; then export PATH="$INSTALL_ENV_DIR/bin:$PATH"; fi @@ -79,7 +80,7 @@ if [ -e "$INSTALL_ENV_DIR" ]; then export PATH="$INSTALL_ENV_DIR/bin:$PATH"; fi if [ ! -e ".git" ]; then git config --global init.defaultBranch main git init - git remote add origin https://github.com/cmdr2/InvokeAI.git + git remote add origin "$REPO_URL" git fetch git checkout origin/main -ft fi