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.

fix(cua-driver-rs)(scripts): point Rust dev installers at libs/cua-driver/rust/ (#1676)

Francesco Bonacci2ebadd5db22d
diff --git a/libs/cua-driver/scripts/_install-local-rust.sh b/libs/cua-driver/scripts/_install-local-rust.sh
index cfd33d55b9..52c387e107 100755
--- a/libs/cua-driver/scripts/_install-local-rust.sh
+++ b/libs/cua-driver/scripts/_install-local-rust.sh
@@ -38,7 +38,10 @@
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
-REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
+# Rust workspace root: scripts/ is the cross-cutting installer dir at
+# libs/cua-driver/scripts/; the Cargo workspace lives one level deeper
+# under libs/cua-driver/rust/.
+REPO_ROOT="$(cd "$SCRIPT_DIR/../rust" && pwd)"
BOLD=$(tput bold 2>/dev/null || true)
NORMAL=$(tput sgr0 2>/dev/null || true)
@@ -150,7 +153,7 @@ chmod +x "$VERSIONED_DIR/cua-driver"
# Skill pack — stage from the repo so the `current` symlink below
# transparently exposes it to agents. Mirrors what install.sh does
# from a release tarball.
-SOURCE_SKILLS="$SCRIPT_DIR/../Skills/cua-driver-rs"
+SOURCE_SKILLS="$REPO_ROOT/Skills/cua-driver-rs"
if [ -d "$SOURCE_SKILLS" ]; then
STAGED_SKILLS="$VERSIONED_DIR/Skills/cua-driver-rs"
rm -rf "$STAGED_SKILLS"
@@ -245,7 +248,7 @@ echo ""
# install.ps1) never drift. The .txt holds the OS-agnostic bulk
# (Try-it / skill pack / MCP setup / docs link) with {{BINARY}}
# placeholders; OS-specific bits stay inline below.
-HINTS_TXT="$REPO_ROOT/../cua-driver/scripts/post-install-hints.txt"
+HINTS_TXT="$SCRIPT_DIR/post-install-hints.txt"
if [ -f "$HINTS_TXT" ]; then
sed "s|{{BINARY}}|$INSTALLED_BIN|g" "$HINTS_TXT"
else
diff --git a/libs/cua-driver/scripts/install-local.ps1 b/libs/cua-driver/scripts/install-local.ps1
index d57163b35a..265eac8fe0 100644
--- a/libs/cua-driver/scripts/install-local.ps1
+++ b/libs/cua-driver/scripts/install-local.ps1
@@ -50,7 +50,10 @@ $ProgressPreference = "SilentlyContinue"
# the logic would otherwise drift.
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
-$RepoRoot = (Resolve-Path "$ScriptDir\..").Path
+# Rust workspace root: scripts/ is the cross-cutting installer dir at
+# libs/cua-driver/scripts/; the Cargo workspace lives one level deeper
+# under libs/cua-driver/rust/.
+$RepoRoot = (Resolve-Path "$ScriptDir\..\rust").Path
$BinaryName = "cua-driver.exe"
# Always release-config — matches the binary install.ps1 hands end users.
$Config = "release"
@@ -244,7 +247,7 @@ if ($AutoStart) {
# (Try-it / skill pack / MCP setup / docs link) with {{BINARY}}
# placeholders; OS-specific bits stay inline below.
$installedBinary = Join-Path $VisibleBinDir $BinaryName
-$HintsTxt = Join-Path $RepoRoot "..\cua-driver\scripts\post-install-hints.txt"
+$HintsTxt = Join-Path $ScriptDir "post-install-hints.txt"
if (Test-Path -LiteralPath $HintsTxt) {
# Read explicitly as UTF-8. PowerShell 5.1's Get-Content -Raw falls
# back to Windows-1252 when the source file has no BOM, which turns