diff --git a/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/entrypoint.sh b/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/entrypoint.sh index cbb083cf..a63dd274 100755 --- a/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/entrypoint.sh +++ b/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/entrypoint.sh @@ -15,8 +15,14 @@ d="$(cd "$(dirname $0)" && pwd)" "$d"/bin/stable-diffusion-webui & +PID=$! + # poll until a HEAD request succeeds while ! curl -Is http://127.0.0.1:7860 | grep -q "HTTP/1.1 200 OK"; do + if ! kill -0 $PID; then + echo "webui process died!" + exit 1 + fi sleep 1 done diff --git a/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/package.yml b/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/package.yml index 260dd168..f48cd14a 100644 --- a/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/package.yml +++ b/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/package.yml @@ -1,9 +1,9 @@ distributable: - url: https://github.com/AUTOMATIC1111/stable-diffusion-webui/archive/22bcc7be.tar.gz + url: https://github.com/AUTOMATIC1111/stable-diffusion-webui/archive/refs/tags/v{{version}}.tar.gz strip-components: 1 versions: - - 2023.03.29 + github: AUTOMATIC1111/stable-diffusion-webui dependencies: python.org: ~3.10 @@ -13,6 +13,7 @@ dependencies: # clear out all the git repos (they were 100s of MB) git-scm.org: ^2 +#FIXME pls make this work on Linux thanks platforms: darwin build: