Repo URL constant

This commit is contained in:
cmdr2 2022-10-26 15:38:49 +05:30 committed by tildebyte
parent f25ad03011
commit 2dd5c0696d
2 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,7 @@ echo.
set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba
set INSTALL_ENV_DIR=%cd%\installer_files\env 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 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 Change the download URL to an InvokeAI repo's release URL
@rem figure out whether git and conda needs to be installed @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" ( if not exist ".git" (
call git config --global init.defaultBranch main call git config --global init.defaultBranch main
call git init 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 fetch
call git checkout origin/main -ft call git checkout origin/main -ft
) )

View File

@ -33,6 +33,7 @@ if [ "$OS_NAME" == "linux" ] && [ "$OS_ARCH" == "arm64" ]; then OS_ARCH="aarch64
export MAMBA_ROOT_PREFIX="$(pwd)/installer_files/mamba" export MAMBA_ROOT_PREFIX="$(pwd)/installer_files/mamba"
INSTALL_ENV_DIR="$(pwd)/installer_files/env" INSTALL_ENV_DIR="$(pwd)/installer_files/env"
MICROMAMBA_DOWNLOAD_URL="https://micro.mamba.pm/api/micromamba/${OS_NAME}-${OS_ARCH}/latest" 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 # figure out whether git and conda needs to be installed
if [ -e "$INSTALL_ENV_DIR" ]; then export PATH="$INSTALL_ENV_DIR/bin:$PATH"; fi 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 if [ ! -e ".git" ]; then
git config --global init.defaultBranch main git config --global init.defaultBranch main
git init git init
git remote add origin https://github.com/cmdr2/InvokeAI.git git remote add origin "$REPO_URL"
git fetch git fetch
git checkout origin/main -ft git checkout origin/main -ft
fi fi