diff --git a/README BEFORE YOU RUN THIS.txt b/README BEFORE YOU RUN THIS.txt new file mode 100644 index 00000000..e9f81544 --- /dev/null +++ b/README BEFORE YOU RUN THIS.txt @@ -0,0 +1,8 @@ +Hi there, + +What you have downloaded is meant for the developers of this project, not for users. + +If you only want to use the Stable Diffusion UI, you've downloaded the wrong file. +Please download and follow the instructions at https://github.com/cmdr2/stable-diffusion-ui#installation + +Thanks \ No newline at end of file diff --git a/build.bat b/build.bat index e5e30b6a..d1bcaab7 100644 --- a/build.bat +++ b/build.bat @@ -1,3 +1,13 @@ +@echo off + +@echo "Hi there, what you are running is meant for the developers of this project, not for users." & echo. +@echo "If you only want to use the Stable Diffusion UI, you've downloaded the wrong file." +@echo "Please download and follow the instructions at https://github.com/cmdr2/stable-diffusion-ui#installation" & echo. +@echo "If you are actually a developer of this project, please type Y and press enter" & echo. + +set /p answer=Are you a developer of this project (Y/N)? +if /i "%answer:~,1%" NEQ "Y" exit /b + @mkdir dist\stable-diffusion-ui @echo "Downloading components for the installer.." diff --git a/build.sh b/build.sh index 582f81da..a8e44cd7 100644 --- a/build.sh +++ b/build.sh @@ -1,5 +1,16 @@ #!/bin/bash +printf "Hi there, what you are running is meant for the developers of this project, not for users.\n\n" +printf "If you only want to use the Stable Diffusion UI, you've downloaded the wrong file.\n" +printf "Please download and follow the instructions at https://github.com/cmdr2/stable-diffusion-ui#installation\n\n" +printf "If you are actually a developer of this project, please type Y and press enter\n\n" + +read -p "Are you a developer of this project (Y/N) " yn +case $yn in + [Yy]* ) break;; + * ) exit;; +esac + mkdir -p dist/stable-diffusion-ui echo "Downloading components for the installer.."