From a088822b5b38d0f6fbccc14fed805edb5f85850f Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Fri, 10 Jul 2026 14:42:32 +1000 Subject: [PATCH] fix(justfile): resolve cargo target dir for staging sidecar copy (#1700) Signed-off-by: Matt Toohey Co-authored-by: Claude Fable 5 --- Justfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index a69011d90..69e9bc663 100644 --- a/Justfile +++ b/Justfile @@ -355,7 +355,8 @@ staging *ARGS: bootstrap _ensure-sidecar-stubs fi # Replace the 0-byte sidecar stub with the real CLI binary so tauri dev picks it up. TARGET=$(rustc -vV | sed -n 's|host: ||p') - cp target/release/buzz "desktop/src-tauri/binaries/buzz-${TARGET}" + TARGET_DIR=$(cargo metadata --format-version 1 --no-deps | node -p "JSON.parse(require('fs').readFileSync(0, 'utf8')).target_directory") + cp "${TARGET_DIR}/release/buzz" "desktop/src-tauri/binaries/buzz-${TARGET}" chmod +x "desktop/src-tauri/binaries/buzz-${TARGET}" cd {{desktop_dir}} export BUZZ_RELAY_URL="wss://sprout-oss.stage.blox.sqprod.co"