2022-09-07 09:56:09 +02:00
|
|
|
@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."
|
2023-06-14 11:57:06 +02:00
|
|
|
@echo "Please download and follow the instructions at https://github.com/easydiffusion/easydiffusion#installation" & echo.
|
2022-09-07 09:56:09 +02:00
|
|
|
@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
|
|
|
|
|
2022-10-26 07:57:34 +02:00
|
|
|
mkdir dist\win\stable-diffusion-ui\scripts
|
2022-10-26 08:15:43 +02:00
|
|
|
@REM mkdir dist\linux-mac\stable-diffusion-ui\scripts
|
2022-09-15 11:44:48 +02:00
|
|
|
|
2022-10-26 07:56:10 +02:00
|
|
|
@rem copy the installer files for Windows
|
2022-09-04 16:01:34 +02:00
|
|
|
|
2022-10-26 07:56:10 +02:00
|
|
|
copy scripts\on_env_start.bat dist\win\stable-diffusion-ui\scripts\
|
|
|
|
copy scripts\bootstrap.bat dist\win\stable-diffusion-ui\scripts\
|
|
|
|
copy "scripts\Start Stable Diffusion UI.cmd" dist\win\stable-diffusion-ui\
|
|
|
|
copy LICENSE dist\win\stable-diffusion-ui\
|
|
|
|
copy "CreativeML Open RAIL-M License" dist\win\stable-diffusion-ui\
|
2022-10-26 07:58:45 +02:00
|
|
|
copy "How to install and run.txt" dist\win\stable-diffusion-ui\
|
2022-10-26 07:56:10 +02:00
|
|
|
echo. > dist\win\stable-diffusion-ui\scripts\install_status.txt
|
2022-09-04 16:01:34 +02:00
|
|
|
|
2022-10-26 07:56:10 +02:00
|
|
|
@rem copy the installer files for Linux and Mac
|
2022-09-04 16:01:34 +02:00
|
|
|
|
2022-10-26 08:15:43 +02:00
|
|
|
@REM copy scripts\on_env_start.sh dist\linux-mac\stable-diffusion-ui\scripts\
|
|
|
|
@REM copy scripts\bootstrap.sh dist\linux-mac\stable-diffusion-ui\scripts\
|
|
|
|
@REM copy scripts\start.sh dist\linux-mac\stable-diffusion-ui\
|
|
|
|
@REM copy LICENSE dist\linux-mac\stable-diffusion-ui\
|
|
|
|
@REM copy "CreativeML Open RAIL-M License" dist\linux-mac\stable-diffusion-ui\
|
|
|
|
@REM copy "How to install and run.txt" dist\linux-mac\stable-diffusion-ui\
|
|
|
|
@REM echo. > dist\linux-mac\stable-diffusion-ui\scripts\install_status.txt
|
2022-09-04 16:01:34 +02:00
|
|
|
|
2022-10-26 07:56:10 +02:00
|
|
|
@rem make the zip
|
2022-09-04 16:01:34 +02:00
|
|
|
|
2022-10-26 07:56:10 +02:00
|
|
|
cd dist\win
|
2022-10-26 14:58:21 +02:00
|
|
|
call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-windows.zip
|
2022-10-26 07:56:10 +02:00
|
|
|
cd ..\..
|
2022-09-04 16:01:34 +02:00
|
|
|
|
2022-10-26 08:15:43 +02:00
|
|
|
@REM cd dist\linux-mac
|
2022-10-26 14:58:21 +02:00
|
|
|
@REM call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-linux.zip
|
|
|
|
@REM call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-mac.zip
|
2022-10-26 08:15:43 +02:00
|
|
|
@REM cd ..\..
|
2022-09-04 16:01:34 +02:00
|
|
|
|
2022-10-26 07:56:10 +02:00
|
|
|
echo "Build ready. Upload the zip files inside the 'dist' folder."
|
2022-09-04 16:01:34 +02:00
|
|
|
|
2022-10-26 07:56:10 +02:00
|
|
|
pause
|