mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-02 17:50:19 +08:00
Merge 446a008886 into 4e6a1b66a9
This commit is contained in:
commit
e2606f03c4
7
comfyui-desktop/comfyui.desktop
Normal file
7
comfyui-desktop/comfyui.desktop
Normal file
@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Name=ComfyUI
|
||||
Exec="/opt/comfyui/run.sh"
|
||||
Type=Application
|
||||
Terminal=true
|
||||
Icon=/opt/comfyui/comfyui.png
|
||||
Categories=Utility;
|
||||
BIN
comfyui-desktop/comfyui.png
Normal file
BIN
comfyui-desktop/comfyui.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 236 KiB |
31
setup-desktop.sh
Normal file
31
setup-desktop.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
read -p "ComfyUI Path: " COMFYUI_PATH
|
||||
COMFYUI_PATH=${COMFYUI_PATH}
|
||||
|
||||
DEFAULT_VENV="${COMFYUI_PATH}venv"
|
||||
read -p "VEnv path (default: $DEFAULT_VENV): " VENV_PATH
|
||||
VENV_PATH=${VENV_PATH:-$DEFAULT_VENV}
|
||||
|
||||
RUN_SCRIPT="comfyui-desktop/run.sh"
|
||||
cat > "$RUN_SCRIPT" << EOL
|
||||
#!/bin/bash
|
||||
source "${VENV_PATH}/bin/activate"
|
||||
cd "$COMFYUI_PATH"
|
||||
python main.py
|
||||
EOL
|
||||
|
||||
chmod +x "$RUN_SCRIPT"
|
||||
if [ ! -d "/opt/comfyui" ]; then
|
||||
mkdir -p /opt/comfyui
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: Failed to create /opt/comfyui. Please check permissions or run as root."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
cp 'comfyui-desktop/comfyui.png' /opt/comfyui/comfyui.png
|
||||
cp 'comfyui-desktop/run.sh' /opt/comfyui/run.sh
|
||||
cp 'comfyui-desktop/comfyui.desktop' /usr/share/applications/comfyui.desktop
|
||||
|
||||
echo "Setup complete! You can run ComfyUI using Start menu"
|
||||
echo "comfyui.desktop copied to /usr/share/applications/comfyui.desktop"
|
||||
Loading…
Reference in New Issue
Block a user