feat: split building process by several scripts

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Aisuko 2023-06-18 12:46:51 +00:00 committed by GitHub
parent d3d3187e51
commit 4117509927
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 179 additions and 28 deletions

View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
#-------------------------------------------------------------------------------------------------------------
# Syntax: ./stable-diffusion.sh
set -e
if ! dpkg -s libopencv-dev > /dev/null 2>&1; then
if [ ! -d "/var/lib/apt/lists" ] || [ "$(ls /var/lib/apt/lists/ | wc -l)" = "0" ]; then
apt-get update
fi
apt-get -y install --no-install-recommends libopencv-dev
ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2
fi
echo "Done!"