mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-01 12:44:31 +01:00
Build the win installer on windows, and linux/mac installer on linux/mac
This commit is contained in:
parent
d4d5b5a75c
commit
dcb27e7de8
28
build.bat
28
build.bat
@ -9,7 +9,7 @@ set /p answer=Are you a developer of this project (Y/N)?
|
|||||||
if /i "%answer:~,1%" NEQ "Y" exit /b
|
if /i "%answer:~,1%" NEQ "Y" exit /b
|
||||||
|
|
||||||
mkdir dist\win\stable-diffusion-ui\scripts
|
mkdir dist\win\stable-diffusion-ui\scripts
|
||||||
mkdir dist\linux-mac\stable-diffusion-ui\scripts
|
@REM mkdir dist\linux-mac\stable-diffusion-ui\scripts
|
||||||
|
|
||||||
@rem copy the installer files for Windows
|
@rem copy the installer files for Windows
|
||||||
|
|
||||||
@ -23,13 +23,13 @@ echo. > dist\win\stable-diffusion-ui\scripts\install_status.txt
|
|||||||
|
|
||||||
@rem copy the installer files for Linux and Mac
|
@rem copy the installer files for Linux and Mac
|
||||||
|
|
||||||
copy scripts\on_env_start.sh dist\linux-mac\stable-diffusion-ui\scripts\
|
@REM copy scripts\on_env_start.sh dist\linux-mac\stable-diffusion-ui\scripts\
|
||||||
copy scripts\bootstrap.sh dist\linux-mac\stable-diffusion-ui\scripts\
|
@REM copy scripts\bootstrap.sh dist\linux-mac\stable-diffusion-ui\scripts\
|
||||||
copy scripts\start.sh dist\linux-mac\stable-diffusion-ui\
|
@REM copy scripts\start.sh dist\linux-mac\stable-diffusion-ui\
|
||||||
copy LICENSE dist\linux-mac\stable-diffusion-ui\
|
@REM copy LICENSE dist\linux-mac\stable-diffusion-ui\
|
||||||
copy "CreativeML Open RAIL-M License" dist\linux-mac\stable-diffusion-ui\
|
@REM copy "CreativeML Open RAIL-M License" dist\linux-mac\stable-diffusion-ui\
|
||||||
copy "How to install and run.txt" dist\linux-mac\stable-diffusion-ui\
|
@REM copy "How to install and run.txt" dist\linux-mac\stable-diffusion-ui\
|
||||||
echo. > dist\linux-mac\stable-diffusion-ui\scripts\install_status.txt
|
@REM echo. > dist\linux-mac\stable-diffusion-ui\scripts\install_status.txt
|
||||||
|
|
||||||
@rem make the zip
|
@rem make the zip
|
||||||
|
|
||||||
@ -37,12 +37,12 @@ cd dist\win
|
|||||||
call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-win-x64.zip
|
call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-win-x64.zip
|
||||||
cd ..\..
|
cd ..\..
|
||||||
|
|
||||||
cd dist\linux-mac
|
@REM cd dist\linux-mac
|
||||||
call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-linux-x64.zip
|
@REM call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-linux-x64.zip
|
||||||
call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-linux-arm64.zip
|
@REM call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-linux-arm64.zip
|
||||||
call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-mac-x64.zip
|
@REM call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-mac-x64.zip
|
||||||
call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-mac-arm64.zip
|
@REM call powershell Compress-Archive -Path stable-diffusion-ui -DestinationPath ..\stable-diffusion-ui-mac-arm64.zip
|
||||||
cd ..\..
|
@REM cd ..\..
|
||||||
|
|
||||||
echo "Build ready. Upload the zip files inside the 'dist' folder."
|
echo "Build ready. Upload the zip files inside the 'dist' folder."
|
||||||
|
|
||||||
|
22
build.sh
22
build.sh
@ -11,18 +11,18 @@ case $yn in
|
|||||||
* ) exit;;
|
* ) exit;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
mkdir -p dist/win/stable-diffusion-ui/scripts
|
# mkdir -p dist/win/stable-diffusion-ui/scripts
|
||||||
mkdir -p dist/linux-mac/stable-diffusion-ui/scripts
|
mkdir -p dist/linux-mac/stable-diffusion-ui/scripts
|
||||||
|
|
||||||
# copy the installer files for Windows
|
# copy the installer files for Windows
|
||||||
|
|
||||||
cp scripts/on_env_start.bat dist/win/stable-diffusion-ui/scripts/
|
# cp scripts/on_env_start.bat dist/win/stable-diffusion-ui/scripts/
|
||||||
cp scripts/bootstrap.bat dist/win/stable-diffusion-ui/scripts/
|
# cp scripts/bootstrap.bat dist/win/stable-diffusion-ui/scripts/
|
||||||
cp "scripts/Start Stable Diffusion UI.cmd" dist/win/stable-diffusion-ui/
|
# cp "scripts/Start Stable Diffusion UI.cmd" dist/win/stable-diffusion-ui/
|
||||||
cp LICENSE dist/win/stable-diffusion-ui/
|
# cp LICENSE dist/win/stable-diffusion-ui/
|
||||||
cp "CreativeML Open RAIL-M License" dist/win/stable-diffusion-ui/
|
# cp "CreativeML Open RAIL-M License" dist/win/stable-diffusion-ui/
|
||||||
cp "How to install and run.txt" dist/win/stable-diffusion-ui/
|
# cp "How to install and run.txt" dist/win/stable-diffusion-ui/
|
||||||
echo "" > dist/win/stable-diffusion-ui/scripts/install_status.txt
|
# echo "" > dist/win/stable-diffusion-ui/scripts/install_status.txt
|
||||||
|
|
||||||
# copy the installer files for Linux and Mac
|
# copy the installer files for Linux and Mac
|
||||||
|
|
||||||
@ -36,9 +36,9 @@ echo "" > dist/linux-mac/stable-diffusion-ui/scripts/install_status.txt
|
|||||||
|
|
||||||
# make the zip
|
# make the zip
|
||||||
|
|
||||||
cd dist/win
|
# cd dist/win
|
||||||
zip -r ../stable-diffusion-ui-win-x64.zip stable-diffusion-ui
|
# zip -r ../stable-diffusion-ui-win-x64.zip stable-diffusion-ui
|
||||||
cd ../..
|
# cd ../..
|
||||||
|
|
||||||
cd dist/linux-mac
|
cd dist/linux-mac
|
||||||
zip -r ../stable-diffusion-ui-linux-x64.zip stable-diffusion-ui
|
zip -r ../stable-diffusion-ui-linux-x64.zip stable-diffusion-ui
|
||||||
|
Loading…
Reference in New Issue
Block a user