From 48edf76f5afd0fb0ec4930dbb10b81e28639029f Mon Sep 17 00:00:00 2001 From: Kaicho Sun Date: Wed, 12 Jan 2022 17:14:58 +0800 Subject: [PATCH] fix macos binary target. --- scripts/setup-binaries.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/setup-binaries.sh b/scripts/setup-binaries.sh index 81bd7fe6..eb8d1d81 100644 --- a/scripts/setup-binaries.sh +++ b/scripts/setup-binaries.sh @@ -3,11 +3,13 @@ rm -rf src-tauri/bins/ mkdir src-tauri/bins +TARGET_TRIPLE=$(rustc -vV | sed -n 's/^.*host: \(.*\)*$/\1/p') + HOLOCHAIN_PATH=$(which holochain) -cp $HOLOCHAIN_PATH src-tauri/bins/holochain-x86_64-unknown-linux-gnu +cp $HOLOCHAIN_PATH src-tauri/bins/holochain-$TARGET_TRIPLE LAIR_PATH=$(which lair-keystore) -cp $LAIR_PATH src-tauri/bins/lair-keystore-x86_64-unknown-linux-gnu +cp $LAIR_PATH src-tauri/bins/lair-keystore-$TARGET_TRIPLE CADDY_PATH=$(which caddy) -cp $CADDY_PATH src-tauri/bins/caddy-x86_64-unknown-linux-gnu \ No newline at end of file +cp $CADDY_PATH src-tauri/bins/caddy-$TARGET_TRIPLE \ No newline at end of file