From bea35c8f1ce1ea4b2acee7de27b6c3ecfa7f5964 Mon Sep 17 00:00:00 2001 From: Assistant builder Date: Fri, 12 Jun 2026 11:29:22 +0000 Subject: [PATCH] Add bin/probe-cs-2: build + scp + run the C# wakeword probe on the Pi --- bin/probe-cs-2 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 bin/probe-cs-2 diff --git a/bin/probe-cs-2 b/bin/probe-cs-2 new file mode 100644 index 0000000..1b6e1e0 --- /dev/null +++ b/bin/probe-cs-2 @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +set -euo pipefail + +PI_HOST="${PI_HOST:-192.168.50.115}" +PI_USER="${PI_USER:-pi}" +PI_PASS="${PI_PASS:-assistant}" +PUBLISH_DIR="${PUBLISH_DIR:-/tmp/probe-cs-2-out}" + +repo_root="$(cd "$(dirname "$0")/.." && pwd)" +cd "$repo_root" + +echo ">> dotnet publish (linux-arm64, self-contained)" +dotnet publish tests/02-wakeword-cs \ + -c Release -r linux-arm64 --self-contained \ + -o "$PUBLISH_DIR" + +echo ">> scp to $PI_USER@$PI_HOST:~/probe-cs-2/ (wipe-and-replace)" +sshpass -p "$PI_PASS" ssh -o StrictHostKeyChecking=accept-new \ + "$PI_USER@$PI_HOST" 'rm -rf ~/probe-cs-2 && mkdir ~/probe-cs-2' +sshpass -p "$PI_PASS" scp -r "$PUBLISH_DIR/." \ + "$PI_USER@$PI_HOST:~/probe-cs-2/" + +echo ">> ssh + run on Pi (Ctrl-C from this terminal stops the probe)" +sshpass -p "$PI_PASS" ssh -t -o StrictHostKeyChecking=accept-new \ + "$PI_USER@$PI_HOST" 'cd ~/probe-cs-2 && chmod +x Probe && ./Probe'