Replace qt with gtk

This commit is contained in:
Dillon DuPont
2025-12-09 18:53:36 -08:00
parent c01987ab66
commit e4e3d63feb
2 changed files with 28 additions and 4 deletions

View File

@@ -123,8 +123,20 @@ RUN mkdir -p /home/cua/.cache && \
# Install computer-server using Python 3.12 pip
RUN python3.12 -m pip install cua-computer-server
# Install PyQt6 and pywebview, used by cua-bench for web UIs
RUN python3.12 -m pip install "pywebview[pyside6]"
# Install GTK and WebKit dependencies for pywebview
RUN apt-get update && apt-get install -y \
python3-gi \
python3-gi-cairo \
gir1.2-gtk-3.0 \
gir1.2-webkit2-4.1 \
libgirepository1.0-dev \
libcairo2-dev \
pkg-config \
gobject-introspection \
&& rm -rf /var/lib/apt/lists/*
# Install pywebview with GTK backend, used by cua-bench for web UIs
RUN python3.12 -m pip install "pywebview[gtk]"
RUN python3.12 -m pip install cua-bench-ui>=0.7.0 --no-cache-dir
# Install playwright and Firefox dependencies

View File

@@ -124,8 +124,20 @@ COPY python/computer-server /tmp/computer-server
RUN python3.12 -m pip install /tmp/computer-server && \
rm -rf /tmp/computer-server
# Install PyQt6 and pywebview, used by cua-bench for web UIs
RUN python3.12 -m pip install "pywebview[pyside6]"
# Install GTK and WebKit dependencies for pywebview
RUN apt-get update && apt-get install -y \
python3-gi \
python3-gi-cairo \
gir1.2-gtk-3.0 \
gir1.2-webkit2-4.1 \
libgirepository1.0-dev \
libcairo2-dev \
pkg-config \
gobject-introspection \
&& rm -rf /var/lib/apt/lists/*
# Install pywebview with GTK backend, used by cua-bench for web UIs
RUN python3.12 -m pip install "pywebview[gtk]"
RUN python3.12 -m pip install cua-bench-ui>=0.7.0 --no-cache-dir
# Install playwright and Firefox dependencies