Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions libs/cua-driver/scripts/_install-local-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions libs/cua-driver/scripts/install-local.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
Loading