fix(build): replace scp with ssh+cat to handle space in username

scp's own user@host:path parser splits on the space in 'speaker ready'
even when the shell argument is quoted. ssh already handles it correctly.
Upload: ssh cat < file; Download: ssh cat > file.
This commit is contained in:
Scott Idem
2026-05-20 17:22:34 -04:00
parent b6b902ad4a
commit ce2832a584

View File

@@ -39,7 +39,7 @@ echo "════════════════════════
echo ""
echo "Step 1/4 — Copying source to $IP..."
ssh "$SSH_USER@$IP" "mkdir -p $REMOTE_TMP"
scp "$SRC" "$SSH_USER@$IP:$REMOTE_TMP/display_control.m"
ssh "$SSH_USER@$IP" "cat > $REMOTE_TMP/display_control.m" < "$SRC"
# ── Step 2: Build universal binary on remote ──────────────────────────────────
@@ -72,7 +72,7 @@ ENDSSH
echo ""
echo "Step 3/4 — Pulling binary to resources/bin/..."
mkdir -p "$(dirname "$OUT_BIN")"
scp "$SSH_USER@$IP:$REMOTE_TMP/display_control" "$OUT_BIN"
ssh "$SSH_USER@$IP" "cat $REMOTE_TMP/display_control" > "$OUT_BIN"
chmod +x "$OUT_BIN"
# ── Step 4: Clean up remote ───────────────────────────────────────────────────