Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

hyprland-plugin: build and qualify against Hyprland 0.57.0 (CUA-3107) (#6329)

Francesco Bonaccia59783a45f1c
diff --git a/libs/cua-driver/hyprland-plugin/packaging/arch/PKGBUILD b/libs/cua-driver/hyprland-plugin/packaging/arch/PKGBUILD
index 52aaa8cc17..494cef13a2 100644
--- a/libs/cua-driver/hyprland-plugin/packaging/arch/PKGBUILD
+++ b/libs/cua-driver/hyprland-plugin/packaging/arch/PKGBUILD
@@ -17,7 +17,7 @@ sha256sums=()
_source_root="$(realpath -e -- "$CUA_SOURCE_ROOT")"
_plugin_source="${_source_root}/libs/cua-driver/hyprland-plugin"
_hyprland_package_version="$CUA_HYPRLAND_PACKAGE_VERSION"
-_hyprland_header_version="${CUA_HYPRLAND_HEADER_VERSION:-0.56.2}"
+_hyprland_header_version="${CUA_HYPRLAND_HEADER_VERSION:-0.57.0}"
depends=("hyprland=${_hyprland_package_version}")
prepare() {
diff --git a/libs/cua-driver/hyprland-plugin/packaging/arch/README.md b/libs/cua-driver/hyprland-plugin/packaging/arch/README.md
index 01981ef89d..f6f74f68e8 100644
--- a/libs/cua-driver/hyprland-plugin/packaging/arch/README.md
+++ b/libs/cua-driver/hyprland-plugin/packaging/arch/README.md
@@ -13,7 +13,7 @@ the pin and must not be guessed:
```bash
export CUA_SOURCE_ROOT=/path/to/cua
export CUA_HYPRLAND_PACKAGE_VERSION="$(pacman -Q hyprland | cut -d' ' -f2-)"
-export CUA_HYPRLAND_HEADER_VERSION=0.56.2
+export CUA_HYPRLAND_HEADER_VERSION=0.57.0
makepkg -si
```
diff --git a/libs/images/omarchy/Dockerfile b/libs/images/omarchy/Dockerfile
index b657cfb8c2..fddfa5c396 100644
--- a/libs/images/omarchy/Dockerfile
+++ b/libs/images/omarchy/Dockerfile
@@ -89,6 +89,10 @@ RUN set -eu; \
[ "$attempt" = 3 ] && exit 1; echo "pacman attempt $attempt failed; retrying" >&2; sleep 5; done; \
if [ "$OMARCHY_PACKAGES" = full ]; then \
pacman -S --noconfirm --needed $(sed 's/#.*//' /usr/share/omarchy/install/omarchy-base.packages | xargs); fi; \
+ want="$(pacman -Qi cua-hyprland-plugin | awk -F': ' '/^Depends On/{print $2}' | tr -s ' ' '\n' | sed -n 's/^hyprland=//p')"; \
+ have="$(pacman -Q hyprland | cut -d' ' -f2)"; \
+ if [ -n "$want" ] && [ "$want" != "$have" ]; then \
+ echo "ERROR: cua-hyprland-plugin pins hyprland=$want but hyprland $have is installed; the plugin must be rebuilt for the Hyprland build Omarchy ships." >&2; exit 1; fi; \
pacman -Q omarchy-dev omarchy-settings-dev cua-driver-bin cua-hyprland-plugin hyprland; \
test -x /usr/bin/cua-driver; test -f /usr/lib/cua/hyprland/cua-hyprland-plugin.so; \
yes | pacman -Scc >/dev/null; rm -f /tmp/packages.desktop; \