fix(justfile): resolve cargo target dir for staging sidecar copy (#1700)

Signed-off-by: Matt Toohey <contact@matttoohey.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Matt Toohey
2026-07-10 14:42:32 +10:00
committed by GitHub
co-authored by Claude Fable 5
parent 389a956e02
commit a088822b5b
+2 -1
View File
@@ -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"