blob: 1257295ab6dd67feb23fac611c05c3e247477b6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/bash
# ComfyUI launcher
# Generated by the comfyui PKGBUILD
_prefix="_PREFIX_"
# Verify that the venv exists
if [ ! -f "$_prefix/venv/bin/python" ]; then
echo "Error: Python venv not found at $_prefix/venv"
echo "The post-install setup may have failed."
echo "Try reinstalling: sudo pacman -S comfyui"
exit 1
fi
# Verify that PyTorch is installed
if ! "$_prefix/venv/bin/python" -c "import torch" 2>/dev/null; then
echo "Error: PyTorch is not installed in the venv."
echo "The post-install setup may have failed or was interrupted."
echo ""
echo "To retry, reinstall the package:"
echo " sudo pacman -S comfyui"
exit 1
fi
source "$_prefix/venv/bin/activate"
exec python "$_prefix/main.py" \
--output-directory "${COMFYUI_OUTPUT_DIR:-/var/lib/comfyui/output}" \
--input-directory "${COMFYUI_INPUT_DIR:-/var/lib/comfyui/input}" \
--extra-model-paths-config /etc/comfyui/extra_model_paths.yaml \
"$@"
|